Skip to content

Commit

Permalink
skip bad dates
Browse files Browse the repository at this point in the history
  • Loading branch information
omni committed Feb 12, 2021
1 parent 98b84e9 commit 486e5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function renderEventCalendar( $input, $args, $mwParser ) {
}

// minimal interval is one day
$tempdate = date_create( $date );
if (! ($tempdate = date_create( $date ))) continue;
date_add( $tempdate, date_interval_create_from_date_string( '1 day' ));
$enddate = date_format( $tempdate, 'Y-m-d' );

Expand Down

0 comments on commit 486e5ea

Please sign in to comment.