Skip to content
Snippets Groups Projects

Replace timezone replacement function

Merged Benjamin Hättasch requested to merge fix-timezone into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading