Skip to content

Commit

Permalink
fix: guessTimeZone() fails with Python 3.11 (#789)
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Eberth <[email protected]>
  • Loading branch information
phorward and sveneberth authored Jul 25, 2023
1 parent f93c456 commit bfa147b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/bones/date.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def guessTimeZone(self):
return pytz.utc

if conf["viur.instance.is_dev_server"]:
return tzlocal.get_localzone()
return pytz.timezone(tzlocal.get_localzone_name())

timeZone = pytz.utc # Default fallback
currReqData = current.request_data.get()
Expand Down

0 comments on commit bfa147b

Please sign in to comment.