forked from lino/radar-wp
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();
|
$field['output'] = array();
|
||||||
foreach ($field['value'] as $date) {
|
foreach ($field['value'] as $date) {
|
||||||
$this_date = sprintf(__('Start: %s', 'radar_textdomain'), $date['start']->format('Y-m-d H:i:s'));
|
$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 />'
|
$this_date .= '<br />'
|
||||||
. sprintf(__('End: %s', 'radar_textdomain'), $date['end']->format('Y-m-d H:i:s'));
|
. sprintf(__('End: %s', 'radar_textdomain'), $date['end']->format('Y-m-d H:i:s'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue