summaryrefslogtreecommitdiff
path: root/yaksh/middleware/user_time_zone.py
diff options
context:
space:
mode:
authoradityacp2017-04-07 15:58:20 +0530
committeradityacp2017-04-07 16:12:36 +0530
commit09429a3a01a591e1a87df51e8584bb4358508b67 (patch)
tree6b29e3b2de4ac0e7c84b72d21c64594ef84db78a /yaksh/middleware/user_time_zone.py
parent8d0186ad51d3b0aa3991cb43c4477bcf2cdfb283 (diff)
downloadonline_test-09429a3a01a591e1a87df51e8584bb4358508b67.tar.gz
online_test-09429a3a01a591e1a87df51e8584bb4358508b67.tar.bz2
online_test-09429a3a01a591e1a87df51e8584bb4358508b67.zip
Change Default timezone from UTC to Asia/Kolkata
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