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

Merge branch 'fix-timezone' into 'main'

Replace timezone replacement function

See merge request !173
parents cca9efde 4fa9ec81
No related branches found
No related tags found
1 merge request!173Replace timezone replacement function
Pipeline #163494 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