Skip to content

Commit

Permalink
Trailing space
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jun 24, 2018
1 parent 89876e0 commit c82cd5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/my-calendar-event-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2428,7 +2428,7 @@ function mc_check_data( $action, $post, $i ) {
$default_modifier = apply_filters( 'mc_default_event_length', '1 hour' );
$endtime = ! empty( $post['event_endtime'][ $i ] ) ? trim( $post['event_endtime'][ $i ] ) : date( 'H:i:s', mc_strtotime( $time . ' +' . $default_modifier ) );
if ( empty( $post['event_endtime'][ $i ] ) && date( 'H', mc_strtotime( $endtime ) ) == '00' ) {
// If one hour pushes event into next day, reset to 11:59pm.
// If one hour pushes event into next day, reset to 11:59pm.
$endtime = '23:59:00';
}
} else {
Expand Down

0 comments on commit c82cd5e

Please sign in to comment.