wtf icon indicating copy to clipboard operation
wtf copied to clipboard

todoist not being able to parse timestamp

Open massawho opened this issue 7 years ago • 5 comments

What's broken?

Todoist shows messsage parsing time "2019-09-30T14:00:00Z" as "2006-01-02T15:04:05+00:00": cannot parse "Z" as "+00:00" for tasks that were imported from GCal.

I have created a new account in todoist and synchronised my todoist with GCal. Since my tasks were first created in GCal, they got exported to todoist and now my wtfutil mod shows that message and cannot display any of the tasks.

Edit: Apparently any task I create in todoist with time, regardless if it's floating time or timezoned, it gives me the same error

massawho avatar Sep 21 '19 05:09 massawho

Confirmed. Attaching a date works fine. Attaching a time causes the error.

senorprogrammer avatar Sep 21 '19 16:09 senorprogrammer

Is there any plan to start working on a fix for this? If not, I will submit a PR if that's ok :)

massawho avatar Sep 25 '19 16:09 massawho

It's all yours, please do. The code in question is over here: https://github.com/wtfutil/todoist/blob/97395e581a76cbb647a0c7b26debebc0456a6f44/todoist.go#L59

I think we'll want to support both the existing format and the affected format.

senorprogrammer avatar Sep 25 '19 17:09 senorprogrammer

Here we go :) #hacktoberfest https://github.com/wtfutil/todoist/pull/1

massawho avatar Oct 09 '19 16:10 massawho

Fixed by https://github.com/wtfutil/todoist/pull/1

senorprogrammer avatar Oct 10 '19 01:10 senorprogrammer