summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-02-14 14:23:23 +0100
committerLeif Johansson <leifj@sunet.se>2011-02-14 14:23:23 +0100
commit122ba5650f3d4af4232d27ecbe0ea7907371b81c (patch)
tree99053273e3293094bbaf06539c4de29b9e1e68a6 /src/meetingtools/apps
parent4e10300880442d4662ae4124ab8be1cee8071eef (diff)
covert date to epoch
Diffstat (limited to 'src/meetingtools/apps')
-rw-r--r--src/meetingtools/apps/room/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/meetingtools/apps/room/models.py b/src/meetingtools/apps/room/models.py
index 9c2c489..7ef9007 100644
--- a/src/meetingtools/apps/room/models.py
+++ b/src/meetingtools/apps/room/models.py
@@ -9,6 +9,7 @@ from django.db.models.fields import CharField, BooleanField, IntegerField, Small
from django.db.models.fields.related import ForeignKey
from django.contrib.auth.models import User
from meetingtools.apps.cluster.models import ACCluster
+import time
class Room(models.Model):
creator = ForeignKey(User,editable=False)
@@ -33,4 +34,4 @@ class Room(models.Model):
if not self.lastvisited:
return 0
else:
- return self.lastvisited \ No newline at end of file
+ return int(time.mktime(self.lastvisited.timetuple())*1000) \ No newline at end of file