Don't pad 12h timestamps

Signed-off-by: Travis Ralston <travpc@gmail.com>
pull/21833/head
turt2live 2017-06-30 08:44:56 -06:00
parent 1cfc2773ea
commit 01b7d7bb7c
1 changed files with 0 additions and 1 deletions

View File

@ -55,7 +55,6 @@ function twelveHourTime(date) {
let hours = date.getHours() % 12;
const minutes = pad(date.getMinutes());
const ampm = date.getHours() >= 12 ? 'PM' : 'AM';
hours = pad(hours ? hours : 12);
return `${hours}:${minutes}${ampm}`;
}