mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix broken default time zone
This commit is contained in:
parent
8493256e3e
commit
c648251380
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ class System(namedtuple("System", ["id", "hid", "name", "description", "tag", "a
|
|||
:returns: The `pytz.tzinfo` instance of the newly set time zone.
|
||||
"""
|
||||
|
||||
canonical_name = canonicalize_tz_name(tz_name)
|
||||
canonical_name = canonicalize_tz_name(tz_name or "UTC")
|
||||
if not canonical_name:
|
||||
raise errors.InvalidTimeZoneError(tz_name)
|
||||
tz = pytz.timezone(canonical_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue