[REM] timezone_get RPC endpoint and underlying function

This commit is contained in:
Xavier Morel
2015-01-29 11:05:56 +01:00
parent c24b28c62a
commit dff893e21e
2 changed files with 0 additions and 10 deletions
-3
View File
@@ -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.
-7
View File
@@ -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" % (