Skip to content

Commit 9aaed65

Browse files
committed
[FIX] setup: server UTC timezone on windows
In 07bf7bf 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
1 parent a93632d commit 9aaed65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup/odoo

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env python
2+
3+
# set server timezone in UTC before time module imported
4+
__import__('os').environ['TZ'] = 'UTC'
25
__import__('pkg_resources').declare_namespace('odoo.addons')
36
import odoo
47

0 commit comments

Comments
 (0)