modified: app.py

This commit is contained in:
SimolZimol
2026-04-21 09:40:44 +02:00
parent 71337bb552
commit f59507007c

2
app.py
View File

@@ -202,7 +202,7 @@ def wetter():
# "Aktuell" = erste Stunde >= jetzt (UTC), sonst erste verfügbare # "Aktuell" = erste Stunde >= jetzt (UTC), sonst erste verfügbare
now_utc = _dt.datetime.now(_dt.timezone.utc).replace(tzinfo=None) now_utc = _dt.datetime.now(_dt.timezone.utc).replace(tzinfo=None)
now_local = _dt.datetime.now() # lokale Serverzeit für Anzeige now_local = _dt.datetime.now(_dt.timezone.utc).astimezone() # lokale Systemzeit inkl. Zeitzone
current_idx = 0 current_idx = 0
for i, h in enumerate(forecast): for i, h in enumerate(forecast):
dt = h["datetime"] dt = h["datetime"]