diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-10-08 21:29:29 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-10-08 21:29:29 +0000 |
commit | 3452092321e545b6113c8965c862b76fdab951d5 (patch) | |
tree | 7510688e53ed10796ad34b9bb9a52d9d951e1041 | |
parent | ca36779a8f04767a8a2ab0ea5e9ff8994aa5e131 (diff) | |
download | bcfg2-3452092321e545b6113c8965c862b76fdab951d5.tar.gz bcfg2-3452092321e545b6113c8965c862b76fdab951d5.tar.bz2 bcfg2-3452092321e545b6113c8965c862b76fdab951d5.zip |
Add in config file support for reporting system timezone changes (Resolves Ticket #600)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4936 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Server/Reports/settings.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Server/Reports/settings.py b/src/lib/Server/Reports/settings.py index 83cfeeccb..e4ca650fb 100644 --- a/src/lib/Server/Reports/settings.py +++ b/src/lib/Server/Reports/settings.py @@ -44,7 +44,10 @@ if DATABASE_ENGINE == 'sqlite3' and DATABASE_NAME == '': # Local time zone for this installation. All choices can be found here: # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE -TIME_ZONE = 'America/Chicago' +try: + TIME_ZONE = c.get('statistics', 'time_zone') +except: + TIME_ZONE = 'America/Chicago' # Language code for this installation. All choices can be found here: # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes |