Ruff format

This commit is contained in:
Chris
2024-10-10 15:00:32 +02:00
committed by Andreas
parent 5503b8876c
commit e65eb6b6dd
19 changed files with 101 additions and 286 deletions

View File

@@ -10,9 +10,7 @@ def ist_dst_wechsel(tag: datetime.datetime, timezone="Europe/Berlin") -> bool:
next_day = current_day + datetime.timedelta(days=1)
# Check if the UTC offsets are different (indicating a DST change)
dst_change = (
current_day.replace(tzinfo=tz).dst() != next_day.replace(tzinfo=tz).dst()
)
dst_change = current_day.replace(tzinfo=tz).dst() != next_day.replace(tzinfo=tz).dst()
return dst_change