diff --git a/utils.py b/utils.py index 9fab48c..37a1cc5 100644 --- a/utils.py +++ b/utils.py @@ -38,7 +38,7 @@ def parse_str_to_datetime(string): def calculate_seconds_between_datetimes(datetime_start, datetime_str_end=None): if not isinstance(datetime_start, datetime): datetime_start = datetime.strptime(datetime_start, consts.DATETIME_FORMAT) - datetime_start = datetime_start.astimezone(consts.TZ_INFO) + datetime_start = datetime_start.astimezone() if datetime_str_end: datetime_end = datetime.strptime(datetime_str_end, consts.DATETIME_FORMAT)