forked from extern/egroupware
fixed recurring events with enddate are on recurrence short in AS
enddate in EGroupware or iCal is only a date, but AS needs a time incl. correct starttime
This commit is contained in:
parent
1df79639b9
commit
7ccc7adadf
@ -825,7 +825,13 @@ class calendar_activesync implements activesync_plugin_write
|
||||
$recurrence->monthofyear = (int)$rrule->time->format('m'); // 1..12
|
||||
break;
|
||||
}
|
||||
if ($rrule->enddate) $recurrence->until = $rrule->enddate->format('server');
|
||||
if ($rrule->enddate) // enddate is only a date, but AS needs a time incl. correct starttime!
|
||||
{
|
||||
$enddate = clone $rrule->time;
|
||||
$enddate->setDate($rrule->enddate->format('Y'), $rrule->enddate->format('m'),
|
||||
$rrule->enddate->format('d'));
|
||||
$recurrence->until = $enddate->format('server');
|
||||
}
|
||||
|
||||
if ($rrule->exceptions)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user