From 9aaed65352146beed98d221f891eecee359053d6 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 13 Jan 2017 10:27:07 +0100 Subject: [PATCH] [FIX] setup: server UTC timezone on windows In 07bf7bf4f3a a fix was introduced for windows server UTC timezone. It is possible it would be helpful in some situation to also have it in setup/odoo (for example if odoo was installed on windows in some other way than the Installation bundle). opw-693764 --- setup/odoo | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/odoo b/setup/odoo index b2a0e17ff83..2670299b150 100644 --- a/setup/odoo +++ b/setup/odoo @@ -1,4 +1,7 @@ #!/usr/bin/env python + +# set server timezone in UTC before time module imported +__import__('os').environ['TZ'] = 'UTC' __import__('pkg_resources').declare_namespace('odoo.addons') import odoo