refactor: use renamed timezone utils

https://github.com/frappe/frappe/pull/20253
This commit is contained in:
barredterra
2023-03-04 19:31:40 +01:00
parent ac87fca0d7
commit 502a37a864
3 changed files with 7 additions and 5 deletions

View File

@@ -13,8 +13,8 @@ from frappe.utils import (
get_datetime,
get_datetime_str,
get_link_to_form,
get_system_timezone,
get_time,
get_time_zone,
get_weekdays,
getdate,
nowdate,
@@ -981,7 +981,7 @@ def convert_utc_to_user_timezone(utc_timestamp, user):
def get_tz(user):
return frappe.db.get_value("User", user, "time_zone") or get_time_zone()
return frappe.db.get_value("User", user, "time_zone") or get_system_timezone()
@frappe.whitelist()