[imp] switched the dates to UTC. I'm so happy.

bzr revid: nicolas.vanhoren@openerp.com-20110922095443-3pzaup9ryb2vb25m
This commit is contained in:
niv-openerp 2011-09-22 11:54:43 +02:00
parent 2508d7b985
commit e42256c478
2 changed files with 3 additions and 4 deletions

View File

@ -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()

View File

@ -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"