From a44190c281c93fa46fe74e5f6b9ff4f6537ac880 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Fri, 27 Oct 2006 05:54:11 +0000 Subject: [PATCH] alldayevents can also start and end on different days --- calendar/inc/class.sifcalendar.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.sifcalendar.inc.php b/calendar/inc/class.sifcalendar.inc.php index 4644f77950..0458bb2da0 100644 --- a/calendar/inc/class.sifcalendar.inc.php +++ b/calendar/inc/class.sifcalendar.inc.php @@ -117,7 +117,8 @@ if($value == 1) { $startParts = explode('-',$this->event['start']); $finalEvent['start'] = mktime(0, 0, 0, $startParts[1], $startParts[2], $startParts[0]); - $finalEvent['end'] = mktime(23, 59, 59, $startParts[1], $startParts[2], $startParts[0]); + $endParts = explode('-',$this->event['end']); + $finalEvent['end'] = mktime(23, 59, 59, $endParts[1], $endParts[2], $endParts[0]); } break;