Local time zone is not applied to tasks created using the Graph API or EWS Managed API If the local time zone is UTC+2, and ToDo task created in ToDo or Outlook due date is April, 15 2023 Graph API returns: "dueDateTime":{"dateTime":"2023-04-14T22:00:00.0

Reudd Groef 0 Reputation points
2023-11-23T03:10:22.76+00:00

Local time zone is not applied to tasks created using the Graph API or EWS Managed API

If the local time zone is UTC+2, and ToDo task created in ToDo or Outlook due date is April, 15 2023 Graph API returns: "dueDateTime":{"dateTime":"2023-04-14T22:00:00.0000000","timeZone":"UTC"} If we…

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

2 answers

Sort by: Most helpful
  1. Reudd Groef 0 Reputation points
    2023-11-23T03:11:07.17+00:00

    Local time zone is not applied to tasks created using the Graph API or EWS Managed API

    If the local time zone is UTC+2, and ToDo task created in ToDo or Outlook due date is April, 15 2023 Graph API returns: "dueDateTime":{"dateTime":"2023-04-14T22:00:00.0000000","timeZone":"UTC"} If we…

    0 comments No comments

  2. AsithwMSFT 1,420 Reputation points Microsoft Vendor
    2023-11-26T22:35:06.5433333+00:00

    @Reudd Groef

    your question is not exacly clear. if you are looking for specific time zone in response.

    You could use the Prefer: outlook.timezone header to have all the date-related properties in the response represented in a time zone different than UTC.

    GET https://graph.microsoft.com/beta/me/outlook/tasks
    
    Prefer: outlook.timezone="Pacific Standard Time"
    Content-type: application/json
    

    Please find the documentation

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

    0 comments No comments