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

sn@ca 5 Reputation points
2023-04-15T20:31:33.26+00:00

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 create or update a task using Graph API with same date

Request:

"dueDateTime":{ "dateTime":"2023-04-14T22:00:00", "timeZone":"UTC"}

Response:

"dueDateTime":{"dateTime":"2023-04-14T00:00:00.0000000","timeZone":"UTC"}

the task will be displayed in the UI with the date April, 14 regardless of the local time zone.

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

84 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more