From c70a7020f5cf41e89cf659442fb2863870aaeace Mon Sep 17 00:00:00 2001 From: Aaron Godfrey Date: Mon, 22 Nov 2021 05:03:56 -0600 Subject: [PATCH] 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. --- homeassistant/components/todoist/calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/todoist/calendar.py b/homeassistant/components/todoist/calendar.py index 7097446ba4f..4caef136f3f 100644 --- a/homeassistant/components/todoist/calendar.py +++ b/homeassistant/components/todoist/calendar.py @@ -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]: