odoo/bin/tools
Olivier Dony 50dca46b0f [FIX] Made timezone detect more robust and added a config option to override it.
Stay backwards-compatible by using time.tzname[0] as we did before if no config option is provided, but only if it is a valid timezone (in the pytz sense).
If no config option is set and time.tzname does't work, fallback, in this order, to:
- environment variable 'TZ'
- /etc/timezone on Unix platforms
- Windows registry on win32 systems
- if nothing works, default to UTC (because we MUST provide a valid timezone to clients)

lp bug: https://launchpad.net/bugs/389544 fixed

bzr revid: odo@openerp.com-20100105152312-fgayeaks12ed3no8
2010-01-05 16:23:12 +01:00
..
__init__.py Changed encoding to coding ref: PEP: 0263 2009-10-20 16:22:23 +05:30
amount_to_text.py [merge] merge from lp:~openerp/openobject-server/5.0/ 2009-11-28 16:14:36 +05:30
amount_to_text_en.py [merge] merge from lp:~openerp/openobject-server/5.0/ 2009-11-28 16:14:36 +05:30
config.py [FIX] Made timezone detect more robust and added a config option to override it. 2010-01-05 16:23:12 +01:00
convert.py [merge] from trunk 2009-12-14 14:29:34 +01:00
copy.py Changed encoding to coding ref: PEP: 0263 2009-10-20 16:22:23 +05:30
func.py Changed encoding to coding ref: PEP: 0263 2009-10-20 16:22:23 +05:30
graph.py [merge] fix-shebang from 5.0 to trunk 2009-12-02 11:14:58 +01:00
import_email.py Changed encoding to coding ref: PEP: 0263 2009-10-20 16:22:23 +05:30
maintenance.py Changed encoding to coding ref: PEP: 0263 2009-10-20 16:22:23 +05:30
misc.py [FIX] Made timezone detect more robust and added a config option to override it. 2010-01-05 16:23:12 +01:00
osutil.py Changed encoding to coding ref: PEP: 0263 2009-10-20 16:22:23 +05:30
parse_version.py Changed encoding to coding ref: PEP: 0263 2009-10-20 16:22:23 +05:30
pdf_utils.py Changed encoding to coding ref: PEP: 0263 2009-10-20 16:22:23 +05:30
safe_eval.py [FIX] replaced <TAB> with four white space. 2009-11-24 20:14:05 +05:30
sql.py Changed encoding to coding ref: PEP: 0263 2009-10-20 16:22:23 +05:30
threadinglocal.py Changed encoding to coding ref: PEP: 0263 2009-10-20 16:22:23 +05:30
translate.py [merge] 5.0-lxml-fixes into trunk 2009-12-02 10:30:08 +01:00
win32.py Changed encoding to coding ref: PEP: 0263 2009-10-20 16:22:23 +05:30