darkSasori / todoist

Unofficial todoist api implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong date format

esttorhe opened this issue · comments

Don't know if it's because of where I'm currently located at (Berlin) or if the format changed; but the ctLayout defined here:

const ctLayout = "2006-01-02T15:04:05+00:00"
does not match what I'm getting back from Todoist (which causes WTFUtil's Todoist mod to fail.

The format I'm seeing is this:

2006-01-02T15:04:00Z

Didn't issue a PR because this needs more digging. Maybe the format is dynamic depending on the timezone/region of the user in Todoist's settings, etc.

Needs verification if the format should be read from the user's machine instead maybe?

I will read doc, and test to resolve this issue

I've submitted a pull request to fix this for wtfutil, which also forks this project. wtfutil#1

i have submitted the same fix i had to wtfutil :)

see if it suits you
#10

@massa1240 thank you, i merged the solution