From 3452092321e545b6113c8965c862b76fdab951d5 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Wed, 8 Oct 2008 21:29:29 +0000 Subject: 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 --- src/lib/Server/Reports/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-1-g7c22