All day event time zone on Outlook desktop app

Vic 21 Reputation points
2023-01-20T12:11:32.75+00:00

Hello,

We are using Graph API to sync users calendar events. The issue is on all-day event that we cannot get back the correct time zone from extended properties if the event is created with Outlook Desktop app. It is reproducible with the Outlook desktop app and Graph Explorer.

Steps to reproduce

  1. Create an all-day event at Outlook web version (browser) with PST time zone (-8)
  2. Create another all-day event at Outlook desktop app with PST time zone (-8)
  3. Query back the event by using Graph Explorer with 'GET /me/events?$expand=singleValueExtendedProperties($filter=id eq 'String {00062002-0000-0000-c000-000000000046} Id 0x8234')'

Result:

• The one from browser returns '(UTC-08:00) Pacific Time (US & Canada)' which is correct

• The other one from desktop app returns '(UTC) Coordinated Universal Time' which is unexpected

For more information, I am using Microsoft Outlook for Mac version 16.69.1.

Thank you,

Victor

Outlook
Outlook
A family of Microsoft email and calendar products.
2,956 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,582 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bhanu Kiran 3,526 Reputation points
    2023-01-21T00:51:37.28+00:00

    Hello @Vic,

    As per the document, by default, start and end times are returned in UTC.

    You can use the following header to get the response in your preferred time zone.

     Prefer: outlook.timezone="Eastern Standard Time"
    

    Example: [https://learn.microsoft.com/en-us/graph/api/event-get?view=graph-rest-1.0&tabs=http#request-1

    Hope this helps,

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