Fix date metadata type html display #178

This commit is contained in:
Leo Germani 2019-02-01 15:38:38 -02:00
parent 1ec9ee704c
commit 6173337999
1 changed files with 2 additions and 2 deletions

View File

@ -75,14 +75,14 @@ class Date extends Metadata_Type {
$separator = $item_metadata->get_multivalue_separator();
foreach ( $value as $el ) {
$return .= $prefix;
$return .= date(get_option('date_format'), strtotime($el));
$return .= mysql2date(get_option('date_format'), ($el));
$return .= $suffix;
$count ++;
if ($count < $total)
$return .= $separator;
}
} else {
$return = date(get_option('date_format'), strtotime($value));
$return = mysql2date(get_option('date_format'), ($value));
}
return $return;