|
@@ 313-321 (lines=9) @@
|
| 310 |
|
if ( strtotime( $recurring_event_date_start ) < $current ) { |
| 311 |
|
if ( $interval > 1 ) { |
| 312 |
|
$recurring_event_date_start = date( 'Ymd', strtotime( $event_date_desc . date( 'F Y', strtotime( '+ ' . ( $interval * $catchup ) . ' months', strtotime( $event['DTSTART'] ) ) ) ) ) . date( '\THis', strtotime( $event['DTSTART'] ) ); |
| 313 |
|
} else { |
| 314 |
|
try { |
| 315 |
|
$adjustment = new DateTime( date( 'Y-m-d', $current ) ); |
| 316 |
|
$adjustment->modify( 'first day of next month' ); |
| 317 |
|
$recurring_event_date_start = date( 'Ymd', strtotime( $event_date_desc . $adjustment->format( 'F Y' ) ) ) . date( '\THis', strtotime( $event['DTSTART'] ) ); |
| 318 |
|
} catch ( Exception $e ) { |
| 319 |
|
// Invalid argument to DateTime |
| 320 |
|
} |
| 321 |
|
} |
| 322 |
|
} |
| 323 |
|
} |
| 324 |
|
break; |
|
@@ 334-342 (lines=9) @@
|
| 331 |
|
$recurring_event_date_start = date( "Ymd\THis", strtotime( $event['DTSTART'] ) ); |
| 332 |
|
} else { |
| 333 |
|
$recurring_event_date_start = date( 'Y', $current ) . date( "md\THis", strtotime( $event['DTSTART'] ) ); |
| 334 |
|
if ( strtotime( $recurring_event_date_start ) < $current ) { |
| 335 |
|
try { |
| 336 |
|
$next = new DateTime( date( 'Y-m-d', $current ) ); |
| 337 |
|
$next->modify( 'first day of next year' ); |
| 338 |
|
$recurring_event_date_start = $next->format( 'Y' ) . date ( 'md\THis', strtotime( $event['DTSTART'] ) ); |
| 339 |
|
} catch ( Exception $e ) { |
| 340 |
|
// Invalid argument to DateTime |
| 341 |
|
} |
| 342 |
|
} |
| 343 |
|
} |
| 344 |
|
break; |
| 345 |
|
|