fix lookup

This commit is contained in:
Matthias Mair 2024-07-13 23:45:40 +02:00
parent d2d4a44705
commit 1c14b3b5df
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -932,7 +932,7 @@ def to_local_time(time, target_tz: str = None):
target_tz = server_timezone() target_tz = server_timezone()
try: try:
target_tz = ZoneInfo(target_tz) target_tz = ZoneInfo(str(target_tz))
except ZoneInfoNotFoundError: except ZoneInfoNotFoundError:
target_tz = ZoneInfo('UTC') target_tz = ZoneInfo('UTC')