feat!: remove deprecated timezone utils (#20255)
This commit is contained in:
parent
8368b73270
commit
036e1c94cd
2 changed files with 0 additions and 16 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue