From 5d668d459514e0a6399327fcdd85ed6ca3432aa8 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 1 Jun 2017 17:03:40 +0200 Subject: [PATCH] only parse valid dates --- static/js/infoView.padma.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/infoView.padma.js b/static/js/infoView.padma.js index c1c51ee36..d5f6f5c37 100644 --- a/static/js/infoView.padma.js +++ b/static/js/infoView.padma.js @@ -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