summaryrefslogtreecommitdiff
path: root/testapp/exam/models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2015-03-01 10:31:18 +0530
committerPrabhu Ramachandran2015-03-01 10:31:18 +0530
commit997a7907a13b394e5ca69fadf17f5bb4d5445536 (patch)
tree4950c79bca8c99f8f83e20d314d3845aeff87423 /testapp/exam/models.py
parent265ad4d17f481e30a84350e8eb96e72c8cedef6b (diff)
parent2c6aa7e1ec058453ce8c559fce26b3ee05d99cae (diff)
downloadonline_test-997a7907a13b394e5ca69fadf17f5bb4d5445536.tar.gz
online_test-997a7907a13b394e5ca69fadf17f5bb4d5445536.tar.bz2
online_test-997a7907a13b394e5ca69fadf17f5bb4d5445536.zip
Merge pull request #36 from prathamesh920/app_package
App package
Diffstat (limited to 'testapp/exam/models.py')
-rw-r--r--testapp/exam/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testapp/exam/models.py b/testapp/exam/models.py
index 4d82783..196ee73 100644
--- a/testapp/exam/models.py
+++ b/testapp/exam/models.py
@@ -304,7 +304,7 @@ class AnswerPaper(models.Model):
def time_left(self):
"""Return the time remaining for the user in seconds."""
- dt = datetime.datetime.now() - self.start_time
+ dt = datetime.datetime.now() - self.start_time.replace(tzinfo=None)
try:
secs = dt.total_seconds()
except AttributeError: