]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/rest: don't set timezone to Chicago 14184/head
authorTim Serong <tserong@suse.com>
Tue, 28 Mar 2017 09:37:51 +0000 (11:37 +0200)
committerTim Serong <tserong@suse.com>
Tue, 28 Mar 2017 09:47:41 +0000 (11:47 +0200)
Setting TIME_ZONE in the Django app causes the timestamps printed in
the mgr log to suddenly be wrong after the rest module starts up
(unless, I imagine, if the host happens to be in Chicago).

Signed-off-by: Tim Serong <tserong@suse.com>
src/pybind/mgr/rest/app/settings.py

index 333272a370a57144b445f80d16a62a3d79b012a0..832ab3221d137222b8d88980948e4019f54b0af2 100644 (file)
@@ -21,7 +21,7 @@ ALLOWED_HOSTS = ['*']
 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
 # although not all choices may be available on all operating systems.
 # In a Windows environment this must be set to your system time zone.
-TIME_ZONE = 'America/Chicago'
+TIME_ZONE = None
 
 # Language code for this installation. All choices can be found here:
 # http://www.i18nguy.com/unicode/language-identifiers.html