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
No related tags found
1 merge request!173Replace timezone replacement function
Pipeline #163488 passed
...@@ -80,7 +80,7 @@ class AvailabilitiesFormMixin(forms.Form): ...@@ -80,7 +80,7 @@ class AvailabilitiesFormMixin(forms.Form):
if not obj: if not obj:
raise TypeError raise TypeError
if obj.tzinfo is None: if obj.tzinfo is None:
obj = obj.astimezone(tz) obj = obj.replace(tzinfo=tz)
return obj return obj
......
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