Fix setting of end date of events that last beyond the requested time period.
authorJan Schneider <jan@horde.org>
Mon, 6 Apr 2009 16:27:32 +0000 (18:27 +0200)
committerJan Schneider <jan@horde.org>
Mon, 6 Apr 2009 17:02:16 +0000 (19:02 +0200)
kronolith/lib/Kronolith.php

index 40e6273..9f5aa18 100644 (file)
@@ -782,7 +782,7 @@ class Kronolith
             /* Work out what day it ends on. */
             if ($event->end->compareDateTime($endDate) > 0) {
                 /* Ends after the end of the period. */
-                $eventEnd = clone $event->end;
+                $eventEnd = clone $endDate;
             } else {
                 /* If the event doesn't end at 12am set the end date to the
                  * current end date. If it ends at 12am and does not end at