fix for bug [ 1022185 ] Last day of event shows 00:00:00 00:00:00

This commit is contained in:
Ralf Becker 2004-09-08 09:42:21 +00:00
parent 4dbb0df8fa
commit b775e8ca4c

View File

@ -2108,7 +2108,8 @@
continue; // fetch recuring events only in 2. loop continue; // fetch recuring events only in 2. loop
} }
$startdate = (int)(date('Ymd',$this->maketime($event['start']))); $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; $this->cached_events[$startdate][] = $event;
if($startdate != $enddate) if($startdate != $enddate)
{ {