From 1c14b3b5dfeb97758a080f595e1fbb3843388593 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Sat, 13 Jul 2024 23:45:40 +0200 Subject: [PATCH] fix lookup --- src/backend/InvenTree/InvenTree/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/InvenTree/InvenTree/helpers.py b/src/backend/InvenTree/InvenTree/helpers.py index 002c5b9149..2d64c5e872 100644 --- a/src/backend/InvenTree/InvenTree/helpers.py +++ b/src/backend/InvenTree/InvenTree/helpers.py @@ -932,7 +932,7 @@ def to_local_time(time, target_tz: str = None): target_tz = server_timezone() try: - target_tz = ZoneInfo(target_tz) + target_tz = ZoneInfo(str(target_tz)) except ZoneInfoNotFoundError: target_tz = ZoneInfo('UTC')