Share via

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 Security | Microsoft Graph
{count} votes

2 answers

Sort by: Most helpful
  1. AsithwMSFT 1,520 Reputation points Microsoft External Staff
    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

  2. 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

Your answer

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