[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user