mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix lookup
This commit is contained in:
parent
d2d4a44705
commit
1c14b3b5df
@ -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')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user