format date

This commit is contained in:
j 2024-02-17 10:30:40 +00:00
parent 40c8c52180
commit 03bd598785
1 changed files with 3 additions and 1 deletions

View File

@ -543,7 +543,9 @@ pandora.ui.infoView = function(data, isMixed) {
function formatValue(key, value) {
var ret;
if (nameKeys.indexOf(key) > -1) {
if (key == 'date' && (!value || value.split('-').length < 4)) {
ret = pandora.formatDate(value);
elif (nameKeys.indexOf(key) > -1) {
ret = formatLink(value.split(', '), 'name');
} else if (
listKeys.indexOf(key) > -1 && Ox.getObjectById(pandora.site.itemKeys, key).type[0] == 'date'