From: Jan Schneider Date: Mon, 6 Apr 2009 16:27:32 +0000 (+0200) Subject: Fix setting of end date of events that last beyond the requested time period. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=704e916112439eced6e02a43d25f3b9f363ba3d8;p=horde.git Fix setting of end date of events that last beyond the requested time period. --- diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 40e6273f3..9f5aa1839 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -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