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
10 lines
240 B
Python
10 lines
240 B
Python
#!/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
|
|
|
|
if __name__ == "__main__":
|
|
odoo.cli.main()
|