Skip to content
Snippets Groups Projects
Commit e2e2f912 authored by Nadja Geisler's avatar Nadja Geisler :sunny:
Browse files

Merge branch 'fix-tz-defaultslots' into 'main'

Fix timezone replacement for default slots

See merge request kif/akplanning!175
parents c5791dc3 11459f16
No related branches found
No related tags found
No related merge requests found
...@@ -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.
Finish editing this message first!
Please register or to comment