~openerp-dev/openobject-server/trunk-bug-1161881-ishwar

« back to all changes in this revision

Viewing changes to openerp/__init__.py

  • Committer: Vo Minh Thu
  • Date: 2013-04-04 13:07:04 UTC
  • mfrom: (4743.1.176 openobject-server)
  • Revision ID: vmt@openerp.com-20130404130704-24vsmczw34cssytd
[MERGE] forward merge 7.0 until revision 4919.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
""" OpenERP core library.
23
23
 
24
24
"""
 
25
 
 
26
# Make sure the OpenERP server runs in UTC. This is especially necessary
 
27
# under Windows as under Linux it seems the real import of time is
 
28
# sufficiently deferred so that setting the TZ environment variable
 
29
# in openerp.cli.server was working.
 
30
import os
 
31
os.environ['TZ'] = 'UTC' # Set the timezone...
 
32
import time              # ... *then* import time.
 
33
del os
 
34
del time
 
35
 
25
36
# The hard-coded super-user id (a.k.a. administrator, or root user).
26
37
SUPERUSER_ID = 1
27
38