mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-12-22 08:12:44 +00:00
service: more timezone shenanigans
This commit is contained in:
parent
f22ab686ab
commit
cc9b565b8e
1 changed files with 1 additions and 1 deletions
2
service
2
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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue