datetime update tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 30 Apr 2009 01:19:34 +0200
branchtls-sprint
changeset 1555 86f9baff9dd6
parent 1554 3a3263df6cdd
child 1556 b64a0fe1fc86
datetime update
web/views/timetable.py
--- a/web/views/timetable.py	Thu Apr 30 00:41:52 2009 +0200
+++ b/web/views/timetable.py	Thu Apr 30 01:19:34 2009 +0200
@@ -45,7 +45,7 @@
                 user = u"*"
             the_dates = []
             if task.start and task.stop:
-                if task.start.absdate == task.stop.absdate:
+                if task.start.toordinal() == task.stop.toordinal():
                     the_dates.append(task.start)
                 else:
                     the_dates += date_range( task.start, task.stop )