[IMP] Changed global timezone of python side.
bzr revid: nicolas.vanhoren@openerp.com-20110428151608-6vjegsfnm7sfu51v
This commit is contained in:
parent
71e9f4a75b
commit
be4b0194bf
|
@ -10,7 +10,6 @@ import time
|
|||
import traceback
|
||||
import uuid
|
||||
import xmlrpclib
|
||||
import pytz
|
||||
|
||||
import cherrypy
|
||||
import cherrypy.lib.static
|
||||
|
@ -499,6 +498,9 @@ class Root(object):
|
|||
default.exposed = True
|
||||
|
||||
def main(argv):
|
||||
# change the timezone of the program to the OpenERP server's assumed timezone
|
||||
os.environ["TZ"] = "UTC"
|
||||
|
||||
# Parse config
|
||||
op = optparse.OptionParser()
|
||||
op.add_option("-p", "--port", dest="socket_port", help="listening port", metavar="NUMBER", default=8002)
|
||||
|
|
Loading…
Reference in New Issue