# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1241047174 -7200 # Node ID 86f9baff9dd6d1d8f49505ca6e7cf28dea6e04e7 # Parent 3a3263df6cdd8d1affbf7c715df6046e1d7ce48f datetime update diff -r 3a3263df6cdd -r 86f9baff9dd6 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 )