mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 02:07:54 +00:00
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
@ -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…
x
Reference in New Issue
Block a user