forked from 0x2620/pandora
only parse valid dates
This commit is contained in:
parent
304afad975
commit
5d668d4595
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue