@@ 193-195 (lines=3) @@ | ||
190 | } else { |
|
191 | $noop = true; |
|
192 | } |
|
193 | } else { |
|
194 | $recurring_event_date_start = date( 'Ymd', strtotime( '+ ' . ( $interval * $catchup ) . ' days', strtotime( $event['DTSTART'] ) ) ) . date( '\THis', strtotime( $event['DTSTART'] ) ); |
|
195 | } |
|
196 | } |
|
197 | break; |
|
198 | ||
@@ 222-224 (lines=3) @@ | ||
219 | } else { |
|
220 | $noop = true; |
|
221 | } |
|
222 | } else { |
|
223 | $recurring_event_date_start = date( 'Ymd', strtotime( '+ ' . ( $interval * $catchup ) . ' weeks', strtotime( $event['DTSTART'] ) ) ) . date( '\THis', strtotime( $event['DTSTART'] ) ); |
|
224 | } |
|
225 | } |
|
226 | ||
227 | // Set to Sunday start |
|
@@ 260-262 (lines=3) @@ | ||
257 | $catchup++; |
|
258 | } |
|
259 | $recurring_event_date_start = date( 'Ymd', strtotime( $event_date_desc . date( 'F Y', strtotime( '+ ' . ( $interval * ( $catchup - 1 ) ) . ' months', strtotime( $event['DTSTART'] ) ) ) ) ) . date( '\THis', strtotime( $event['DTSTART'] ) ); |
|
260 | } else { |
|
261 | $recurring_event_date_start = date( 'Ymd', strtotime( $event_date_desc . date( 'F Y', $current ) ) ) . date( '\THis', strtotime( $event['DTSTART'] ) ); |
|
262 | } |
|
263 | ||
264 | // Add one interval if necessary |
|
265 | if ( strtotime( $recurring_event_date_start ) < $current ) { |