|
@@ 797-800 (lines=4) @@
|
| 794 |
|
$two_dates = __( '%1$s – %2$s' , 'jetpack' ); |
| 795 |
|
|
| 796 |
|
// we'll always have the start date. Maybe with time |
| 797 |
|
if ( $all_day ) |
| 798 |
|
$date = date_i18n( $date_format, $start ); |
| 799 |
|
else |
| 800 |
|
$date = sprintf( $date_with_time, date_i18n( $date_format, $start ), date_i18n( $time_format, $start ) ); |
| 801 |
|
|
| 802 |
|
// single day, timed |
| 803 |
|
if ( $single_day && ! $all_day && false !== $end ) |
|
@@ 809-814 (lines=6) @@
|
| 806 |
|
// multi-day |
| 807 |
|
if ( ! $single_day ) { |
| 808 |
|
|
| 809 |
|
if ( $all_day ) { |
| 810 |
|
// DTEND for multi-day events represents "until", not "including", so subtract one minute |
| 811 |
|
$end_date = date_i18n( $date_format, $end - 60 ); |
| 812 |
|
} else { |
| 813 |
|
$end_date = sprintf( $date_with_time, date_i18n( $date_format, $end ), date_i18n( $time_format, $end ) ); |
| 814 |
|
} |
| 815 |
|
|
| 816 |
|
$date = sprintf( $two_dates, $date, $end_date ); |
| 817 |
|
|