summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Reports/settings.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2010-10-28 14:37:08 -0500
committerSol Jerome <sol.jerome@gmail.com>2010-11-02 20:35:19 -0500
commit40d3006505ea03cb2318622dff16eb7c2e8f7213 (patch)
treea83dc88554c224d3c1ee95c5cb3601b421e6697a /src/lib/Server/Reports/settings.py
parent3e55068024caf55f0ed287e878c22aa71ff5ecfd (diff)
downloadbcfg2-40d3006505ea03cb2318622dff16eb7c2e8f7213.tar.gz
bcfg2-40d3006505ea03cb2318622dff16eb7c2e8f7213.tar.bz2
bcfg2-40d3006505ea03cb2318622dff16eb7c2e8f7213.zip
Reports: Fix default time zone settings (Resolves Ticket #957)
We were previously defaulting to America/Chicago instead of leaving this option up to the user. Setting the default to None will cause Django to go by the system time. Note also that Django sets the os.environ['TZ'] variable when this is not none, so we want to be careful not to set that if we don't have to. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Server/Reports/settings.py')
-rw-r--r--src/lib/Server/Reports/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Reports/settings.py b/src/lib/Server/Reports/settings.py
index 81220c0e3..b725783ca 100644
--- a/src/lib/Server/Reports/settings.py
+++ b/src/lib/Server/Reports/settings.py
@@ -49,7 +49,7 @@ if DATABASE_ENGINE == 'sqlite3' and DATABASE_NAME == '':
try:
TIME_ZONE = c.get('statistics', 'time_zone')
except:
- TIME_ZONE = 'America/Chicago'
+ TIME_ZONE = None
# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes