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.