modified: app.py

This commit is contained in:
SimolZimol
2026-04-21 09:52:10 +02:00
parent 38c37d1bb9
commit 55bda8ea5e

3
app.py
View File

@@ -218,7 +218,8 @@ def wetter():
berlin = pytz.timezone("Europe/Berlin")
now_local_dt = _dt.datetime.now(berlin)
now_local = now_local_dt.strftime("%H:%M")
now_berlin_naive = now_local_dt.replace(tzinfo=None)
# Auf volle Stunde abrunden → aktuelle Stunde als Startpunkt
now_berlin_naive = now_local_dt.replace(minute=0, second=0, microsecond=0, tzinfo=None)
current_idx = 0
for i, h in enumerate(forecast):
dt = h["datetime"]