Months for modified date need to be translated
This commit is contained in:
parent
5f0ab971f1
commit
a695aa3071
|
@ -270,8 +270,8 @@ function simpleFileSize(bytes) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatDate(date){
|
function formatDate(date){
|
||||||
var monthNames = [ "January", "February", "March", "April", "May", "June",
|
var monthNames = [ t('files','January'), t('files','February'), t('files','March'), t('files','April'), t('files','May'), t('files','June'),
|
||||||
"July", "August", "September", "October", "November", "December" ];
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue