From 76a033521e369c03a4e58261d8b27d04734dfede Mon Sep 17 00:00:00 2001 From: Paul-Emile Element Date: Fri, 30 Nov 2018 09:36:06 -0500 Subject: [PATCH] unset horizon TIME_ZONE to use system value instead The horizon configuration file has a value set for TIME_ZONE (set to UTC). This value is not available for users to modify and takes precedence over the system settings. The result is that the horizon GUI will show times in UTC regardless of the system settings This commit simple unsets the value so that the GUI uses the system values by default. Closes-Bug: #1806051 Change-Id: If24daaa97109d1020ec7f4ebdafebb5cda395ccb Signed-off-by: Paul-Emile Element --- openstack/python-horizon/centos/files/local_settings.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openstack/python-horizon/centos/files/local_settings.py b/openstack/python-horizon/centos/files/local_settings.py index 40d472b8..a32d8a8f 100755 --- a/openstack/python-horizon/centos/files/local_settings.py +++ b/openstack/python-horizon/centos/files/local_settings.py @@ -1200,3 +1200,11 @@ SESSION_TIMEOUT = 3000 # token expiry to log users out. If the token expires in 60 minutes, a # value of 600 will log users out after 50 minutes. TOKEN_TIMEOUT_MARGIN = 600 + +# The timezone of the server. This should correspond with the timezone +# of your entire OpenStack installation, and hopefully be in UTC. +# In this case, we set the value to None so that the interface uses the system +# timezone by default +# This is an intentional overwrite of the original default value defined +# above in this file. +TIME_ZONE = None