From 1a92d2a3156946430b473d1dd8d1eb1815a62aea Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 19 Feb 2012 14:26:54 +0000 Subject: [PATCH] fix a date formatting issue in info view --- static/js/pandora/infoView.padma.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/infoView.padma.js b/static/js/pandora/infoView.padma.js index 75ccbc9c..85dfb271 100644 --- a/static/js/pandora/infoView.padma.js +++ b/static/js/pandora/infoView.padma.js @@ -549,7 +549,8 @@ pandora.ui.infoView = function(data) { function formatValue(value, key) { if(key == 'date') { return value ? Ox.formatDate(value, - ['', '%Y', '%B, %Y', '%B %e, %Y'][value.split('-').length]) : ''; + ['', '%Y', '%B %Y', '%B %e, %Y'][value.split('-').length] + ) : ''; } else if(key == 'duration') { return value < 60 ? Math.round(value) + ' sec' : Math.round(value / 60) + ' min'; }