modified: app.py
This commit is contained in:
3
app.py
3
app.py
@@ -218,7 +218,8 @@ def wetter():
|
|||||||
berlin = pytz.timezone("Europe/Berlin")
|
berlin = pytz.timezone("Europe/Berlin")
|
||||||
now_local_dt = _dt.datetime.now(berlin)
|
now_local_dt = _dt.datetime.now(berlin)
|
||||||
now_local = now_local_dt.strftime("%H:%M")
|
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
|
current_idx = 0
|
||||||
for i, h in enumerate(forecast):
|
for i, h in enumerate(forecast):
|
||||||
dt = h["datetime"]
|
dt = h["datetime"]
|
||||||
|
|||||||
Reference in New Issue
Block a user