mirror of
https://0xacab.org/radar/radar-wp.git
synced 2024-12-23 00:56:31 +01:00
Correct start end date comparison.
This commit is contained in:
parent
def076a641
commit
4309a70c9f
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ function radar_shortcode_field_date_value($field, $type, $item, $parents, $short
|
|||
$field['output'] = array();
|
||||
foreach ($field['value'] as $date) {
|
||||
$this_date = sprintf(__('Start: %s', 'radar_textdomain'), $date['start']->format('Y-m-d H:i:s'));
|
||||
if ($field['value']['start'] != $field['value']['end']) {
|
||||
if ($date['start'] != $date['end']) {
|
||||
$this_date .= '<br />'
|
||||
. sprintf(__('End: %s', 'radar_textdomain'), $date['end']->format('Y-m-d H:i:s'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue