Skip to content
Snippets Groups Projects
Commit 0045e640 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

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

parent b11b6afb
Branches
No related tags found
No related merge requests found
......@@ -519,5 +519,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();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment