FindWhoIsOnDuty() doesn't seem to take time of day into account

I have a two schedules for a group. The Schedule A ends on Tuesday at 9am. The Schedule B begins on Tuesday at 9am.

When calling the API, I've set my startDate to "17/11/15 09:00:00 AM" and my endDate to "17/11/15 01:00:00 PM"

The API returns only Schedule A, which is incorrect. It should return Schedule B, because that is the one on duty during the specified time.

From my testing it appears that if I have two schedules on the same day, no matter what I set the time of day to, it only returns the first schedule of that day.

Am I missing something using the API? Why am I not getting the correct schedule?


Please sign in to leave a comment.