How can we get the real time zone of the shared user calendar

Xufyan Ali 0 Reputation points
2024-05-22T19:03:46.8033333+00:00

I want to get the time zone of the shared calendar, How can i get the timezone, calendar api is not giving me time zone.

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

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 1,320 Reputation points Microsoft Vendor
    2024-05-23T07:37:26.8133333+00:00

    Hi @Xufyan Ali

    According to the graph Api, by default, the calendar API returns the start and end times of an event in UTC, and provides the originalStartTimeZone and originalEndTimeZone properties to note the time zones used when the event was created.

    Therefore, you can get the time zone of the shared calendar through the events endpoint.

    Screenshot 2024-05-23 152638

    Here are my test results.

    Screenshot 2024-05-23 153103

    See the link below for details:

    https://learn.microsoft.com/en-us/graph/outlook-calendar-concept-overview#automate-appointment-organization-and-calendaring

    https://learn.microsoft.com/en-us/graph/api/user-list-events?view=graph-rest-1.0&tabs=http#support-various-time-zones

    Hope this helps.

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