Skip to content

Commit

Permalink
fix: range of times w/ same date should use base date format (usually…
Browse files Browse the repository at this point in the history
… w/ year) "July 4, 2019 - 3pm–5pm"
  • Loading branch information
petertwise committed Jan 9, 2024
1 parent aeb30e3 commit acbd3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function get_squarecandy_acf_events_date_display( $event, $compact = null ) {
) {
// start and end date the same; range of times
// example: July 4, 2019 - 3pm–5pm
$output .= date_i18n( $formats['date_format_multi_start'], strtotime( $start_date ) );
$output .= date_i18n( $formats['date_format'], strtotime( $start_date ) );
$output .= $sep;
$output .= '<span class="time">' . date_i18n( $formats['time_format'], strtotime( $start_time ) );
$output .= $range;
Expand Down

0 comments on commit acbd3c6

Please sign in to comment.