Fix todoist due_today attribute for calendar events (#60038)

The attribute was comparing a UTC date to a local date which caused the
attribute to not be true in some cases.
This commit is contained in:
Aaron Godfrey 2021-11-22 05:03:56 -06:00 committed by GitHub
parent 8b30cb509f
commit c70a7020f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,7 +421,7 @@ class TodoistProjectData:
# it shouldn't be counted.
return None
task[DUE_TODAY] = task[END].date() == datetime.today().date()
task[DUE_TODAY] = task[END].date() == dt.utcnow().date()
# Special case: Task is overdue.
if task[END] <= task[START]: