From e57081241996189428bcace8551248690821fccd Mon Sep 17 00:00:00 2001 From: Norbert Kwizera Date: Fri, 10 Jan 2025 23:38:16 +0200 Subject: [PATCH] Fix type comparison --- temba/utils/dates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temba/utils/dates.py b/temba/utils/dates.py index cac229850bb..acc2f9f77f8 100644 --- a/temba/utils/dates.py +++ b/temba/utils/dates.py @@ -15,7 +15,7 @@ def datetime_to_str(date_obj, format, tz): if not date_obj: return None - if type(date_obj) == date: + if type(date_obj) is date: date_obj = datetime.combine(date_obj, time(0, 0, 0)).replace(tzinfo=tz) if isinstance(date_obj, datetime):