Skip to content

Commit ba00bc4

Browse files
authored
fix: Fix DST again (#81)
1 parent 7948eae commit ba00bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ims_envista/meteo_data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def _fix_datetime_offset(dt: datetime.datetime) -> tuple[datetime.datetime, bool
166166
# Replace the pytz tzinfo with the fixed timezone
167167
dt = dt.replace(tzinfo=fixed_timezone)
168168

169-
is_dst = dt.dst() != datetime.timedelta(0)
169+
is_dst = dt.dst() and dt.dst() != datetime.timedelta(0)
170170
if is_dst:
171171
dt = dt + datetime.timedelta(hours=1)
172172

0 commit comments

Comments
 (0)