Calendar view date filter works wrong

Igor Kaplya 1 Reputation point
2022-08-17T10:59:44.193+00:00

We're using this API endpoint:
https://learn.microsoft.com/en-us/graph/api/user-list-calendarview?view=graph-rest-1.0&tabs=csharp#query-parameters

When we have parameters:

  • startDateTime = 2022-08-12T00:00:00
  • endDateTime = 2022-08-12T23:59:59

We recieve such things as

event1

  • start 2022-08-11T00:00:00.000Z
  • end 2022-08-12T00:00:00.000Z

event2

  • start 2022-08-12T00:00:00.000Z
  • end 2022-08-13T00:00:00.000Z

event3

  • start 2022-08-13T00:00:00.000Z
  • end 2022-08-14T00:00:00.000Z

Note, that event3 should not be there, but appears because was created in Amsterdam timezone.

  • Go to outlook web
  • Change your time zone in preferences to Amsterdam (UTC +1)
  • Create all day events: yesterday, today, tomorrow
  • Call API with parameters (GET /users/{id | userPrincipalName}/calendarView?startDateTime={start_datetime}&endDateTime={end_datetime})
  • startDateTime : today 00:00:00
  • endDateTime: today 23:59:59
  • id: users id, that was used to create events in outlook
  • Expected to recieve only todays event
  • Actually you'll get today and tomorrow events.
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,453 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sheena-MSFT 1,731 Reputation points
    2022-08-17T15:10:53.317+00:00

    Hi @Igor Kaplya ,

    I have tried to replicate this issue and I was able to see similar behavior. I would recommend you to raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better. You can raise support ticket from http://aad.portal.azure.com/ or https://admin.microsoft.com/#/support/requests.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments