feat!: remove deprecated timezone utils (#20255)

This commit is contained in:
Raffael Meyer 2023-03-06 15:26:57 +01:00 committed by GitHub
parent 8368b73270
commit 036e1c94cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 16 deletions

View file

@ -329,13 +329,6 @@ def get_system_timezone():
return frappe.cache().get_value("time_zone", _get_system_timezone)
def get_time_zone():
deprecation_warning(
"`get_time_zone` is deprecated and will be removed in version 15. Use `get_system_timezone` instead."
)
return get_system_timezone()
def convert_utc_to_timezone(utc_timestamp, time_zone):
from pytz import UnknownTimeZoneError, timezone
@ -356,13 +349,6 @@ def convert_utc_to_system_timezone(utc_timestamp):
return convert_utc_to_timezone(utc_timestamp, time_zone)
def convert_utc_to_user_timezone(utc_timestamp):
deprecation_warning(
"`convert_utc_to_user_timezone` is deprecated and will be removed in version 15. Use `convert_utc_to_system_timezone` instead."
)
return convert_utc_to_system_timezone(utc_timestamp)
def now() -> str:
"""return current datetime as yyyy-mm-dd hh:mm:ss"""
if frappe.flags.current_date:

View file

@ -445,9 +445,7 @@ VALID_UTILS = (
"now_datetime",
"get_timestamp",
"get_eta",
"get_time_zone",
"get_system_timezone",
"convert_utc_to_user_timezone",
"convert_utc_to_system_timezone",
"now",
"nowdate",