Fix time formatting for minutes, prepend 0 if minutes is less than 10

This commit is contained in:
Michael Gapczynski 2012-07-06 16:38:54 -04:00
parent 466d7c0d99
commit 90e4af312a
1 changed files with 1 additions and 1 deletions

View File

@ -518,5 +518,5 @@ function formatDate(date){
}
var monthNames = [ t('files','January'), t('files','February'), t('files','March'), t('files','April'), t('files','May'), t('files','June'),
t('files','July'), t('files','August'), t('files','September'), t('files','October'), t('files','November'), t('files','December') ];
return monthNames[date.getMonth()]+' '+date.getDate()+', '+date.getFullYear()+', '+((date.getHours()<10)?'0':'')+date.getHours()+':'+date.getMinutes();
return monthNames[date.getMonth()]+' '+date.getDate()+', '+date.getFullYear()+', '+((date.getHours()<10)?'0':'')+date.getHours()+':'+((date.getMinutes()<10)?'0':'')+date.getMinutes();
}