visualize: Keep shape of plots the same on dst change Closes #185 (#203)

* Currently prediction hours are relative from current hour and don't
   adjust on daylight saving change.
 * ist_dst_wechsel now unused.
This commit is contained in:
Dominique Lasserre
2024-11-16 21:52:51 +01:00
committed by GitHub
parent 69212c3cff
commit b3914ab16b
2 changed files with 3 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ import datetime
import zoneinfo
# currently unused
def ist_dst_wechsel(tag: datetime.datetime, timezone="Europe/Berlin") -> bool:
"""Checks if Daylight Saving Time (DST) starts or ends on a given day."""
tz = zoneinfo.ZoneInfo(timezone)