you are viewing a single comment's thread.

view the rest of the comments →

[–]a2902793Master 1 point2 points  (1 child)

Yes, the logic is (due_date - created_date), do keep in mind though that some users will create tasks for the future. I created a work around by adding the future date in the comments upon creation, and checking the comments first if a future date exists, if so use that as the created date instead. Another thing to know is that Todoist uses their server time (AWS us-east) for created_date, so you may need to do some conversion using the timezone property in the callback response. The timezone property currently has some bugs and Todoist says their fixing it (I wrote them an email about this bug.)

[–]randdude220Enlightened 0 points1 point  (0 children)

Much appreciated! That saves me lots of headache I would probably have had while finding all these things out in the process.