summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbhavani.cr <bhavani.r@nectechnologies.in>2017-06-27 11:17:21 +0530
committerRob Cresswell <robert.cresswell@outlook.com>2017-07-11 14:21:21 +0000
commitcde65757e352b35b55f48a2aa4bcf11dd5685bdc (patch)
tree179477563f8260a0bfe91d085d1b36e7926966b9
parent784f080a596334c4173e1bc367067473c9db76d8 (diff)
downloadhorizon-cde65757e352b35b55f48a2aa4bcf11dd5685bdc.tar.gz
Use request.COOKIES to activate the timezone
This patch fixes the inconsistency in the instance creation time. Change-Id: Ic4afd9a03f0278883e0d00a2e075acaa4b4f8dc1 Co-Authored-By: bhavani <bhavani.r@nectechnologies.in> Closes-Bug: #1418031 (cherry picked from commit 29a3768379c5804891c1cd679b2bed3556588740)
-rw-r--r--horizon/middleware/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/middleware/base.py b/horizon/middleware/base.py
index 60cd6f602..89bd24d42 100644
--- a/horizon/middleware/base.py
+++ b/horizon/middleware/base.py
@@ -106,7 +106,7 @@ class HorizonMiddleware(object):
}
)
- tz = request.session.get('django_timezone')
+ tz = utils.get_timezone(request)
if tz:
timezone.activate(tz)