cbrooker / MMM-Todoist

This is an extension for the MagicMirror2 platform. It will display your Todoist todos on your MagicMirror.
MIT License
151 stars 58 forks source link

Account for tasks' timezones when parsing due dates #79

Closed diego-escalante closed 4 years ago

diego-escalante commented 4 years ago

Tasks due dates without a specific timezone set (i.e. using floating time), are returned by the Todoist API in the format "2020-06-16T8:00:00", whereas tasks due dates with a specific timezone set are returned relative to UTC in Zulu format, that is "2020-06-16T8:00:00Z".

This pull requests takes into account set timezones in tasks when parsing the date.