outlook doesn't apply selected time zone on ToDo Tasks

Constantin Kwiatkowski 40 Reputation points


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

A family of Microsoft email and calendar products.
579 questions
Microsoft Graph to Do Tasks API
Microsoft Graph Applications API
Microsoft Graph Applications API
A Microsoft API that enables you to manage these resources and actions related to applications in Azure Active Directory.
504 questions
{count} votes

Accepted answer
  1. CarlZhao-MSFT 20,776 Reputation points

    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.
    No comments

0 additional answers

Sort by: Most helpful