* 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:43:06 +00:00
parent c79657705b
commit 1fc54e038b

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(