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
This commit is contained in:
bhavani.cr 2017-06-27 11:17:21 +05:30 committed by Alok Kumar
parent 29a6ed4cc0
commit 29a3768379

View File

@ -106,7 +106,7 @@ class HorizonMiddleware(object):
}
)
tz = request.session.get('django_timezone')
tz = utils.get_timezone(request)
if tz:
timezone.activate(tz)