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

Replace timezone replacement function

Hopefully resolve UTC-Event-Timezone-Bug
parent cca9efde
Branches
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ class AvailabilitiesFormMixin(forms.Form):
if not obj:
raise TypeError
if obj.tzinfo is None:
obj = obj.astimezone(tz)
obj = obj.replace(tzinfo=tz)
return obj
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment