Skip to content
Snippets Groups Projects
Commit 11459f16 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Fix timezone replacement for default slots

parent c5791dc3
No related branches found
No related tags found
1 merge request!175Fix timezone replacement for default slots
Checking pipeline status
...@@ -150,8 +150,8 @@ class DefaultSlotEditorView(EventSlugMixin, IntermediateAdminView): ...@@ -150,8 +150,8 @@ class DefaultSlotEditorView(EventSlugMixin, IntermediateAdminView):
previous_slot_ids = set(s.id for s in self.event.defaultslot_set.all()) previous_slot_ids = set(s.id for s in self.event.defaultslot_set.all())
for slot in default_slots_raw: for slot in default_slots_raw:
start = parse_datetime(slot["start"]).astimezone(tz) start = parse_datetime(slot["start"]).replace(tzinfo=tz)
end = parse_datetime(slot["end"]).astimezone(tz) end = parse_datetime(slot["end"]).replace(tzinfo=tz)
if slot["id"] != '': if slot["id"] != '':
id = int(slot["id"]) id = int(slot["id"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment