Skip to content

Commit

Permalink
fix: Fix DST again (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyKh authored Nov 4, 2024
1 parent 7948eae commit ba00bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ims_envista/meteo_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _fix_datetime_offset(dt: datetime.datetime) -> tuple[datetime.datetime, bool
# Replace the pytz tzinfo with the fixed timezone
dt = dt.replace(tzinfo=fixed_timezone)

is_dst = dt.dst() != datetime.timedelta(0)
is_dst = dt.dst() and dt.dst() != datetime.timedelta(0)
if is_dst:
dt = dt + datetime.timedelta(hours=1)

Expand Down

0 comments on commit ba00bc4

Please sign in to comment.