@@ 829-832 (lines=4) @@ | ||
826 | $two_dates = __( '%1$s – %2$s' , 'jetpack' ); |
|
827 | ||
828 | // we'll always have the start date. Maybe with time |
|
829 | if ( $all_day ) |
|
830 | $date = date_i18n( $date_format, $start ); |
|
831 | else |
|
832 | $date = sprintf( $date_with_time, date_i18n( $date_format, $start ), date_i18n( $time_format, $start ) ); |
|
833 | ||
834 | // single day, timed |
|
835 | if ( $single_day && ! $all_day && false !== $end ) |
|
@@ 841-846 (lines=6) @@ | ||
838 | // multi-day |
|
839 | if ( ! $single_day ) { |
|
840 | ||
841 | if ( $all_day ) { |
|
842 | // DTEND for multi-day events represents "until", not "including", so subtract one minute |
|
843 | $end_date = date_i18n( $date_format, $end - 60 ); |
|
844 | } else { |
|
845 | $end_date = sprintf( $date_with_time, date_i18n( $date_format, $end ), date_i18n( $time_format, $end ) ); |
|
846 | } |
|
847 | ||
848 | $date = sprintf( $two_dates, $date, $end_date ); |
|
849 |