From 03bd59878581704808f677fe7f10bb7e8a61577c Mon Sep 17 00:00:00 2001 From: j Date: Sat, 17 Feb 2024 10:30:40 +0000 Subject: [PATCH] format date --- static/js/infoView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/infoView.js b/static/js/infoView.js index 7e841f7b..3bc015c0 100644 --- a/static/js/infoView.js +++ b/static/js/infoView.js @@ -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'