format date

This commit is contained in:
j 2024-02-17 10:30:40 +00:00
parent 40c8c52180
commit 03bd598785

View file

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