Skip to content

Commit

Permalink
Fix type comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Jan 10, 2025
1 parent d505170 commit 7957136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion temba/utils/dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7957136

Please sign in to comment.