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')