[REM] timezone_get RPC endpoint and underlying function
This commit is contained in:
@@ -53,9 +53,6 @@ def exp_about(extended=False):
|
||||
return info, openerp.release.version
|
||||
return info
|
||||
|
||||
def exp_timezone_get(db, login, password):
|
||||
return openerp.tools.misc.get_server_timezone()
|
||||
|
||||
def exp_set_loglevel(loglevel, logger=None):
|
||||
# TODO Previously, the level was set on the now deprecated
|
||||
# `openerp.netsvc.Logger` class.
|
||||
|
||||
@@ -740,13 +740,6 @@ def detect_ip_addr():
|
||||
ip_addr = 'localhost'
|
||||
return ip_addr
|
||||
|
||||
def get_server_timezone():
|
||||
_logger.warn("Getting the server timezone is deprecated and useless: the "
|
||||
"server always works in UTC and ignores the system's own "
|
||||
"timezone")
|
||||
return "UTC"
|
||||
|
||||
|
||||
DEFAULT_SERVER_DATE_FORMAT = "%Y-%m-%d"
|
||||
DEFAULT_SERVER_TIME_FORMAT = "%H:%M:%S"
|
||||
DEFAULT_SERVER_DATETIME_FORMAT = "%s %s" % (
|
||||
|
||||
Reference in New Issue
Block a user