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
Outlook
A family of Microsoft email and calendar products.
3,206 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,030 questions
{count} votes

Accepted answer
  1. CarlZhao-MSFT 38,676 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