A client noticed that the add the calendar links were added the wrong end date to their calendar.
It appears the calculation in aEvent::getVcalEndDateTime() is wrong.
Line 71 is
$end = aDate::normalize($this->getEndDate()) + 60 * 3600 + 59 * 60 + 59;
and should probably be
$end = aDate::normalize($this->getEndDate()) + 86399;
as 60 * 3600 + 59 * 60 + 59 = 219599 seconds which adds on a couple of days (2.54166), not the 1 second less than a day that is required.
Cheers
Giles