Fix fix, for recurring events.
authorJan Schneider <jan@horde.org>
Mon, 6 Apr 2009 17:24:23 +0000 (19:24 +0200)
committerJan Schneider <jan@horde.org>
Mon, 6 Apr 2009 22:15:07 +0000 (00:15 +0200)
kronolith/lib/Driver/Sql.php

index 752d073..b524b6c 100644 (file)
@@ -356,7 +356,7 @@ class Kronolith_Driver_Sql extends Kronolith_Driver
                 $events[$row['event_uid']] = $row['event_id'];
             } else {
                 $next = $this->nextRecurrence($row['event_id'], $startInterval);
-                if ($next && $next->compareDate($endInterval) < 0) {
+                if ($next && $next->compareDateTime($endInterval) < 0) {
                     $events[$row['event_uid']] = $row['event_id'];
                 }
             }