diff --git a/program/utils.py b/program/utils.py index e89ba2742b6cd54d907e5601dff054bb18c58d30..78481e83b35cc7979074af6fbb14557f5c6fd34e 100644 --- a/program/utils.py +++ b/program/utils.py @@ -35,7 +35,7 @@ def parse_datetime(date_string: str) -> datetime: except ValueError: parsed_datetime = datetime.strptime(date_string, "%Y-%m-%d %H:%M:%S%z") - return timezone.make_aware(parsed_datetime) + return timezone.make_aware(parsed_datetime) if timezone.is_naive(parsed_datetime) else parsed_datetime def parse_date(date_string: str) -> date: