mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
Always add a recurrence-id so a client can tell this repeats.
If the recurrence-id is missing the client can't provide an indication that this is a repeating event. Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
parent
71b1aa3d21
commit
ca6668c608
@ -1071,8 +1071,7 @@ function expand_event_instances( $vResource, $range_start = null, $range_end = n
|
||||
$component->ClearProperties( array('DTSTART'=> true, 'DUE' => true, 'DTEND' => true,
|
||||
'RRULE' => true, 'RDATE' => true, 'EXDATE' => true) );
|
||||
$component->AddProperty('DTSTART', $utc, ($is_date ? array('VALUE' => 'DATE') : null) );
|
||||
if ( $utc != $dtstart->FloatOrUTC() )
|
||||
$component->AddProperty('RECURRENCE-ID', $utc, ($is_date ? array('VALUE' => 'DATE') : null) );
|
||||
$component->AddProperty('RECURRENCE-ID', $utc, ($is_date ? array('VALUE' => 'DATE') : null) );
|
||||
$component->AddProperty('DURATION', $duration );
|
||||
$new_components[] = $component;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user