outlook doesn't apply selected time zone on ToDo Tasks

Constantin Kwiatkowski 45 Reputation points
2023-03-10T12:14:32.2+00:00

grafik

As we said, Outlook doesn't apply the selected time zone on ToDo Tasks. Local time is UTC+5:30 and we set a task on March 17 4 am. If we read the task out via MS Graph then we get we tasks with the startdate March 16 18:30:00 (UTC). If we use the selected time zone, the expected value supposed to be March 17 3 am. Thanks

Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Graph
{count} votes

Accepted answer
  1. CarlZhao-MSFT 46,376 Reputation points
    2023-03-13T07:40:28.0566667+00:00

    Hi @Constantin Kwiatkowski

    You should attach the request header of your target time zone when calling the graph API, otherwise it will return your task information in the default UTC time.

    GET https://graph.microsoft.com/v1.0/me/todo/lists/{todoTaskListId}/tasks/{taskId}
    Prefer: outlook.timezone="{your target time zone}"
    

    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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