Skip to content
Snippets Groups Projects

Replace timezone replacement function

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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
Loading