question

Timo-9483 avatar image
1 Vote"
Timo-9483 asked ShwetaChoudhary-8869 answered

To Do: completedDateTime and timezone

Goal: retrieve list of completed To Dos of a users for a given day.

The description of completedDateTime states that it refers to the timezone specified (link to doc). However it appears that the returned date value is always UTC midnight

Repo: I created and completed a test todo with the official Microsoft To Do app today on September 27th with my device set to "Denver - Standard Mountain Time" (local time 1 AM). When I list the todos via the API and specify the header "Prefer: outlook.timezone='America/Denver'", it returns:

   "completedDateTime": {
     "dateTime": "2021-09-26T18:00:00",
     "timeZone": "Mountain Standard Time"
   }

This is not correct. I completed the todo on September 27th - not September 26th.
What am I doing wrong?

This bug/question has been asked previously on GitHub but was closed: https://github.com/microsoftgraph/microsoft-graph-docs/issues/8192
It also was confirmed to be a bug there.


microsoft-graph-todo
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ShwetaChoudhary-8869 avatar image
0 Votes"
ShwetaChoudhary-8869 answered

Thank you for reaching out.

This is a known issue
Unfortunately, I do not have any ETA as of now on this.

Hope this helps.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.