Months for modified date need to be translated

This commit is contained in:
Michael Gapczynski 2011-08-28 14:21:36 -04:00
parent 5f0ab971f1
commit a695aa3071
1 changed files with 2 additions and 2 deletions

View File

@ -270,8 +270,8 @@ function simpleFileSize(bytes) {
}
function formatDate(date){
var monthNames = [ "January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December" ];
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();
}