diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2017-01-13 10:27:07 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2017-01-13 10:37:24 +0100 |
| commit | 9aaed65352146beed98d221f891eecee359053d6 (patch) | |
| tree | 8e3e0cac1dc94e02b7ee071f3ad27075719d7505 /setup/odoo | |
| parent | a93632df91b7590763f3cf429a2b2062fc2ae4c4 (diff) | |
[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
Diffstat (limited to 'setup/odoo')
| -rw-r--r-- | setup/odoo | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
