From ca6668c6082dec91db16c183f2f3983a324f2411 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 5 Jan 2011 09:10:47 +1300 Subject: [PATCH] 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 --- inc/RRule-v2.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inc/RRule-v2.php b/inc/RRule-v2.php index 63315f06..0d32b2b8 100644 --- a/inc/RRule-v2.php +++ b/inc/RRule-v2.php @@ -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; }