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:
parent
8b30cb509f
commit
c70a7020f5
1 changed files with 1 additions and 1 deletions
|
@ -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]:
|
||||
|
|
Loading…
Add table
Reference in a new issue