fix a date formatting issue in info view
This commit is contained in:
parent
4ecf56e783
commit
1a92d2a315
1 changed files with 2 additions and 1 deletions
|
@ -549,7 +549,8 @@ pandora.ui.infoView = function(data) {
|
||||||
function formatValue(value, key) {
|
function formatValue(value, key) {
|
||||||
if(key == 'date') {
|
if(key == 'date') {
|
||||||
return value ? Ox.formatDate(value,
|
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') {
|
} else if(key == 'duration') {
|
||||||
return value < 60 ? Math.round(value) + ' sec' : Math.round(value / 60) + ' min';
|
return value < 60 ? Math.round(value) + ' sec' : Math.round(value / 60) + ' min';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue