* Calendar: fixed wrong time in iCal of notification, if notifying user is not in server TZ

we need to pass $event[id] so iCal class reads event again, as event is in user TZ, but iCal class expects server TZ!
This commit is contained in:
Ralf Becker 2012-01-23 02:53:25 +00:00
parent f5a7c9cfe8
commit 24be2fa21d

View File

@ -789,7 +789,9 @@ class calendar_boupdate extends calendar_bo
{
$calendar_ical = new calendar_ical();
$calendar_ical->setSupportedFields('full'); // full iCal fields+event TZ
$ics = $calendar_ical->exportVCal(array($event),'2.0',$method);
// we need to pass $event[id] so iCal class reads event again,
// as event is in user TZ, but iCal class expects server TZ!
$ics = $calendar_ical->exportVCal(array($event['id']),'2.0',$method);
unset($calendar_ical);
}
$attachment = array(