[imp] switched the dates to UTC. I'm so happy.
bzr revid: nicolas.vanhoren@openerp.com-20110922095443-3pzaup9ryb2vb25m
This commit is contained in:
parent
2508d7b985
commit
e42256c478
|
@ -232,6 +232,8 @@ def quit_on_signals():
|
|||
|
||||
if __name__ == "__main__":
|
||||
|
||||
os.environ["TZ"] = "UTC"
|
||||
|
||||
check_root_user()
|
||||
openerp.tools.config.parse_config(sys.argv[1:])
|
||||
check_postgres_user()
|
||||
|
|
|
@ -984,10 +984,7 @@ def detect_server_timezone():
|
|||
return 'UTC'
|
||||
|
||||
def get_server_timezone():
|
||||
# timezone detection is safe in multithread, so lazy init is ok here
|
||||
if (not config['timezone']):
|
||||
config['timezone'] = detect_server_timezone()
|
||||
return config['timezone']
|
||||
return "UTC"
|
||||
|
||||
|
||||
DEFAULT_SERVER_DATE_FORMAT = "%Y-%m-%d"
|
||||
|
|
Loading…
Reference in New Issue