[FIX] setup: server UTC timezone on windows

In 07bf7bf4f3 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
This commit is contained in:
Nicolas Lempereur
2017-01-13 10:37:24 +01:00
parent a93632df91
commit 9aaed65352
+3
View File
@@ -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