PurpleTurtleCreative / completionist

Asana integration plugin for WordPress.
https://purpleturtlecreative.com/completionist/
GNU General Public License v3.0
3 stars 0 forks source link

Inconsistent due date display for Dashboard Widget tasks #76

Closed MichelleBlanchette closed 2 years ago

MichelleBlanchette commented 2 years ago

I have an Automation Action that was supposed to create a due date of July 28, 2022. It was correctly passed to Asana as such. In the Dashboard Widget, however, the task is displaying a due date of July 27.

Automation Action Screen Shot 2022-05-22 at 7 02 28 PM

Asana Screen Shot 2022-05-22 at 7 02 07 PM

Dashboard Widget Screen Shot 2022-05-22 at 7 01 47 PM

MichelleBlanchette commented 2 years ago

I'm thinking this is probably because JavaScript interprets ISO timestamps as GMT but then displays them in local time. Since I am in GMT-0500 timezone, that means I am 5 hours before midnight of July 28—meaning I am still on July 27.

Might want to use PHP to convert the timestamps to a more usable time format for JavaScript...?