web/views/timetable.py
branchstable
changeset 3917 0f912c1cde28
parent 3914 36be7a5e53ad
child 3998 94cc7cad3d2d
child 4212 ab6573088b4a
--- a/web/views/timetable.py	Tue Nov 24 17:27:10 2009 +0100
+++ b/web/views/timetable.py	Tue Nov 24 11:10:33 2009 -0800
@@ -10,7 +10,7 @@
 
 from cubicweb.interfaces import ITimetableViews
 from cubicweb.selectors import implements
-from cubicweb.utils import date_range
+from cubicweb.utils import date_range, todatetime
 from cubicweb.view import AnyRsetView
 
 
@@ -55,6 +55,7 @@
             elif task.stop:
                 the_dates.append(task.stop)
             for d in the_dates:
+                d = todatetime(d)
                 d_users = dates.setdefault(d, {})
                 u_tasks = d_users.setdefault(user, set())
                 u_tasks.add( task )