summaryrefslogtreecommitdiff
path: root/yaksh/middleware/user_time_zone.py
diff options
context:
space:
mode:
authoradityacp2016-05-17 12:59:24 +0530
committeradityacp2016-05-17 12:59:24 +0530
commit7b762b4550f08b95c1ebf8196bd79c3f77a306ca (patch)
tree6553297f4855810eb349916a4a5947a1f88c4fb2 /yaksh/middleware/user_time_zone.py
parentc1cd00f34341e06dce7610fa5da42d68b531bd92 (diff)
downloadonline_test-7b762b4550f08b95c1ebf8196bd79c3f77a306ca.tar.gz
online_test-7b762b4550f08b95c1ebf8196bd79c3f77a306ca.tar.bz2
online_test-7b762b4550f08b95c1ebf8196bd79c3f77a306ca.zip
comment changes
Diffstat (limited to 'yaksh/middleware/user_time_zone.py')
-rw-r--r--yaksh/middleware/user_time_zone.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/middleware/user_time_zone.py b/yaksh/middleware/user_time_zone.py
index 3555d1f..f1aace9 100644
--- a/yaksh/middleware/user_time_zone.py
+++ b/yaksh/middleware/user_time_zone.py
@@ -9,7 +9,7 @@ class TimezoneMiddleware(object):
def process_request(self, request):
user = request.user
if hasattr(user, 'profile'):
- user_tz = user.profile.timezone
+ user_tz = user.profile.timezone
timezone.activate(pytz.timezone(user_tz))
else:
timezone.activate(pytz.timezone('UTC'))