service: more timezone shenanigans

This commit is contained in:
Franzi 2023-09-30 09:38:31 +02:00
parent f22ab686ab
commit cc9b565b8e

View file

@ -100,7 +100,7 @@ def main():
else:
schedule = r.json()
for talk in schedule['talks']:
talk['start_str'] = datetime.fromtimestamp(talk['start_ts']).astimezone(event_tz).strftime('%H:%M')
talk['start_str'] = datetime.fromtimestamp(talk['start_ts']).replace(tzinfo=pytz.utc).astimezone(event_tz).strftime('%H:%M')
node.write_json("schedule.json", schedule)
log("updated schedule json")