only parse valid dates

This commit is contained in:
j 2017-06-01 17:03:40 +02:00
parent 304afad975
commit 5d668d4595

View file

@ -593,7 +593,7 @@ pandora.ui.infoView = function(data) {
function formatValue(key, value) {
var ret;
if (key == 'date') {
if (key == 'date' && (!value || value.split('-') < 4)) {
ret = value ? Ox.formatDate(value,
['', '%Y', '%B %Y', '%B %e, %Y'][value.split('-').length],
true