summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/__terp__.py
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2010-01-05 16:23:12 +0100
committerOlivier Dony <odo@openerp.com>2010-01-05 16:23:12 +0100
commit50dca46b0fe695a518600f652c2dbdf06cddf055 (patch)
tree567f648215af261a3927488967cc3fd784d23bef /addons/analytic_user_function/__terp__.py
parentc01d37e8c27c0d00308935bcf94892a49daadd96 (diff)
[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
Diffstat (limited to 'addons/analytic_user_function/__terp__.py')
0 files changed, 0 insertions, 0 deletions