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 12:17:39 +00:00
parent 2f10c7a587
commit 7479c7f40a

View File

@ -2122,7 +2122,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)
{