From 88db9b2451693ab832a9d8c0abcad0a452b3500d Mon Sep 17 00:00:00 2001
From: adityacp
Date: Fri, 6 May 2016 23:45:16 +0530
Subject: display datetime as per user timezone
---
yaksh/templates/yaksh/intro.html | 4 +++-
yaksh/templates/yaksh/quizzes_user.html | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
(limited to 'yaksh/templates')
diff --git a/yaksh/templates/yaksh/intro.html b/yaksh/templates/yaksh/intro.html
index 1ed82e2..f05e9a1 100644
--- a/yaksh/templates/yaksh/intro.html
+++ b/yaksh/templates/yaksh/intro.html
@@ -12,7 +12,9 @@
{% else %}
- You can attempt this Quiz at any time between {{ questionpaper.quiz.start_date_time }} GMT and {{ questionpaper.quiz.end_date_time }} GMT
+ {% load tz %}
+ {% get_current_timezone as TIME_ZONE %}
+ You can attempt this Quiz at any time between {{ questionpaper.quiz.start_date_time }} {{ TIME_ZONE }} and {{ questionpaper.quiz.end_date_time }} {{ TIME_ZONE }}
You are not allowed to attempt the Quiz before or after this duration
diff --git a/yaksh/templates/yaksh/quizzes_user.html b/yaksh/templates/yaksh/quizzes_user.html
index 223952e..6403a21 100644
--- a/yaksh/templates/yaksh/quizzes_user.html
+++ b/yaksh/templates/yaksh/quizzes_user.html
@@ -42,7 +42,7 @@
{% if cannot_attempt %}
You have not passed the prerequisite & hence you cannot take the quiz.
{% endif %}
-
List of quizzes availbale for you
+
List of quizzes available for you
{% if not quizzes %}
No active quizzes for you
{% endif %}
--
cgit