Fix time formatting for minutes, prepend 0 if minutes is less than 10
This commit is contained in:
parent
466d7c0d99
commit
90e4af312a
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue