GraphApi showing different data than Outlook calendar

Rupesh Kumar 0 Reputation points
2023-01-11T15:56:00.4966667+00:00

Question Title: I have an Away (or 'oof') events in my calendar from 30th Dec 2022 till 6th Jan 2023.
But thru GrapiApi this event endtime is showing at 7th Jan 2023.

I have tried passing (or not passing) headers as well prefer:outlook.timezone="W. Europe Standard Time"

Please see the attached image : graphApi

Don't know why EndDate is shifting 1 day.
thanks in advance.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,800 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,821 Reputation points
    2023-01-11T23:07:42.26+00:00

    Hello @Rupesh Kumar ,

    Thanks for reaching out!

    When creating an "All Day" event using Outlook UI, the start and end times only specify the date, not the date and time. As per my understanding on this, it is working as per it is designed. Graph API is simply following the Outlook UI and returning results in response. An Allday event runs from midnight this day to midnight next day. Midnight of "2023-01-07T00:00:00" is basically the end of "2023-01-06" or more precisely ("2023-01-06T23:59:59").

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.