Fix visualizzazione colonne timestamp

This commit is contained in:
Fabio Lovato 2020-04-07 16:31:34 +02:00
parent a47b41d0aa
commit 3cd9aec92d
1 changed files with 4 additions and 4 deletions

View File

@ -96,12 +96,12 @@ if (!empty($query)) {
// Formattazione automatica // Formattazione automatica
if (!empty($total['format'][$pos]) && !empty($value)) { if (!empty($total['format'][$pos]) && !empty($value)) {
if (formatter()->isStandardDate($value)) { if (formatter()->isStandardTimestamp($value)) {
$value = Translator::timestampToLocale($value);
} elseif (formatter()->isStandardDate($value)) {
$value = Translator::dateToLocale($value); $value = Translator::dateToLocale($value);
} elseif (formatter()->isStandardTime($value)) { } elseif (formatter()->isStandardTime($value)) {
$value = Translator::timeToLocale($value); $value = Translator::timeToLocale($value);
} elseif (formatter()->isStandardTimestamp($value)) {
$value = Translator::timestampToLocale($value);
} elseif (formatter()->isStandardNumber($value)) { } elseif (formatter()->isStandardNumber($value)) {
$value = Translator::numberToLocale($value); $value = Translator::numberToLocale($value);
} }