Bug in Events add to calendar links

5 views
Skip to first unread message

Giles Smith

unread,
Apr 30, 2013, 12:20:04 PM4/30/13
to apostr...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages