Julian Alwandy
Julian Alwandy

Reputation: 331

Microsoft Shifts API - Unable to get people on shifts between 8am to 5PM when timestamp is 3PM

I'm stuck with an issue where with Microsoft Shifts API I am unable to find people on shift when I look for 3 PM, see below API call:

https://graph.microsoft.com/v1.0/teams/${route.teamId}/schedule/shifts?$filter=sharedShift/startDateTime ge ${requestData.startDateTimestamp} and sharedShift/endDateTime le ${requestData.startDateTimestamp}

So if startDateTimestamp is for 3 PM that day, it will not return anyone on shift between 8am to 5pm .. How can we do that? Or if someone is on shift from 1PM to 5PM.

Any ideas?

Upvotes: 0

Views: 221

Answers (1)

Jeevan
Jeevan

Reputation: 437

Looks like it could be a timezone problem. Please try running it with time in UTC instead of local time and see if the problem persists. If so please share the response/error.

Upvotes: 1

Related Questions