diff --git a/frappe/utils/data.py b/frappe/utils/data.py index 8a00b336f1..440d8b8211 100644 --- a/frappe/utils/data.py +++ b/frappe/utils/data.py @@ -372,7 +372,7 @@ def get_system_timezone() -> str: def convert_utc_to_timezone(utc_timestamp: datetime.datetime, time_zone: str) -> datetime.datetime: if utc_timestamp.tzinfo is None: - utc_timestamp = utc_timestamp.replace(tzinfo=ZoneInfo(time_zone)) + utc_timestamp = utc_timestamp.replace(tzinfo=ZoneInfo("UTC")) try: return utc_timestamp.astimezone(ZoneInfo(time_zone))