Hoffelhas / autodoist

Added functionality for Todoist.
MIT License
178 stars 23 forks source link

Fix error in due date when using the alternatvie end of day feature #26

Closed alxhlz closed 1 year ago

alxhlz commented 2 years ago

While trying to use the alternative end of day feature I stumbled over a bug that got triggered because the day of the newly commited date was invalid.

The error message from todoist was:

todoist.api.SyncError: ('***', {'error': 'Date is invalid', 'error_code': 480, 'error_extra': {}, 'error_tag': 'INVALID_DATE', 'http_code': 400})

I fixed it the same way it has already been fixed with the month.

Hoffelhas commented 1 year ago

Hi there, thanks for letting me know about this bug. Due to the Todoist API change I'm doing a big overhaul of Autodoist, so this fix can't be merged in the latest dev version. In any case I've included this fix, so I'm closing this one for now.