fix a date formatting issue in info view

This commit is contained in:
rolux 2012-02-19 14:26:54 +00:00
parent 4ecf56e783
commit 1a92d2a315

View file

@ -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';
}