Fix date metadata type html display #178
This commit is contained in:
parent
1ec9ee704c
commit
6173337999
|
@ -75,14 +75,14 @@ class Date extends Metadata_Type {
|
||||||
$separator = $item_metadata->get_multivalue_separator();
|
$separator = $item_metadata->get_multivalue_separator();
|
||||||
foreach ( $value as $el ) {
|
foreach ( $value as $el ) {
|
||||||
$return .= $prefix;
|
$return .= $prefix;
|
||||||
$return .= date(get_option('date_format'), strtotime($el));
|
$return .= mysql2date(get_option('date_format'), ($el));
|
||||||
$return .= $suffix;
|
$return .= $suffix;
|
||||||
$count ++;
|
$count ++;
|
||||||
if ($count < $total)
|
if ($count < $total)
|
||||||
$return .= $separator;
|
$return .= $separator;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$return = date(get_option('date_format'), strtotime($value));
|
$return = mysql2date(get_option('date_format'), ($value));
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue