From 704e916112439eced6e02a43d25f3b9f363ba3d8 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 6 Apr 2009 18:27:32 +0200 Subject: [PATCH] Fix setting of end date of events that last beyond the requested time period. --- kronolith/lib/Kronolith.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0