summaryrefslogtreecommitdiff
path: root/yaksh/middleware/user_time_zone.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-04-28 17:14:43 +0530
committerGitHub2017-04-28 17:14:43 +0530
commitb285378b2eca29e7125bf9474cd57c973a202f37 (patch)
tree726da35ba55acacfde255e31bdc2233600f75395 /yaksh/middleware/user_time_zone.py
parent2694fd6dd4d37a1a6570792e234998feef21edca (diff)
parent624e752684125aa525d9b3643cbd7c9b7ba61682 (diff)
downloadonline_test-b285378b2eca29e7125bf9474cd57c973a202f37.tar.gz
online_test-b285378b2eca29e7125bf9474cd57c973a202f37.tar.bz2
online_test-b285378b2eca29e7125bf9474cd57c973a202f37.zip
Merge pull request #273 from adityacp/email_verification
Email verification during registration
Diffstat (limited to 'yaksh/middleware/user_time_zone.py')
-rw-r--r--yaksh/middleware/user_time_zone.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/middleware/user_time_zone.py b/yaksh/middleware/user_time_zone.py
index 0bd4831..ff9ec5c 100644
--- a/yaksh/middleware/user_time_zone.py
+++ b/yaksh/middleware/user_time_zone.py
@@ -5,10 +5,10 @@ from django.utils import timezone
class TimezoneMiddleware(object):
""" Middleware to get user's timezone and activate timezone
- if user timezone is not available default value 'UTC' is activated """
+ if user timezone is not available default value 'Asia/Kolkata' is activated """
def process_request(self, request):
user = request.user
- user_tz = 'UTC'
+ user_tz = 'Asia/Kolkata'
if hasattr(user, 'profile'):
if user.profile.timezone:
user_tz = user.profile.timezone