From cc9b565b8ea4e2923e9452973e5b36fbd7d21289 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 30 Sep 2023 09:38:31 +0200 Subject: [PATCH] service: more timezone shenanigans --- service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service b/service index efe485e..eb4d8ae 100755 --- a/service +++ b/service @@ -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")