Display RECURRENCE-ID as appropriate.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
Andrew McMillan 2011-01-08 13:33:52 +13:00
parent 5e5fa2d44e
commit 4278ace1f7

View File

@ -1086,9 +1086,9 @@ function expand_event_instances( $vResource, $range_start = null, $range_end = n
'RRULE' => true, 'RDATE' => true, 'EXDATE' => true) );
}
$component->AddProperty('DTSTART', $utc, ($is_date ? array('VALUE' => 'DATE') : null) );
if ( $has_repeats )
$component->AddProperty('RECURRENCE-ID', $utc, ($is_date ? array('VALUE' => 'DATE') : null) );
$component->AddProperty('DURATION', $duration );
if ( $has_repeats && $dtstart->FloatOrUTC() != $utc )
$component->AddProperty('RECURRENCE-ID', $utc, ($is_date ? array('VALUE' => 'DATE') : null) );
$new_components[] = $component;
}