From b775e8ca4ce76e4906b94feb04a3dfef6138cb94 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 8 Sep 2004 09:42:21 +0000 Subject: [PATCH] fix for bug [ 1022185 ] Last day of event shows 00:00:00 00:00:00 --- calendar/inc/class.bocalendar.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.bocalendar.inc.php b/calendar/inc/class.bocalendar.inc.php index 95f9a76659..da51e6a9b2 100755 --- a/calendar/inc/class.bocalendar.inc.php +++ b/calendar/inc/class.bocalendar.inc.php @@ -2108,7 +2108,8 @@ continue; // fetch recuring events only in 2. loop } $startdate = (int)(date('Ymd',$this->maketime($event['start']))); - $enddate = (int)(date('Ymd',$this->maketime($event['end']))); + // maketime($event['end'][)-1 to allow events to end on a full hour/day without the need to enter it as minute=59 + $enddate = (int)(date('Ymd',$this->maketime($event['end'])-1)); $this->cached_events[$startdate][] = $event; if($startdate != $enddate) {