From 01b7d7bb7c05b194c0a2ec0198652951b0f32528 Mon Sep 17 00:00:00 2001 From: turt2live Date: Fri, 30 Jun 2017 08:44:56 -0600 Subject: [PATCH] Don't pad 12h timestamps Signed-off-by: Travis Ralston --- src/DateUtils.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/DateUtils.js b/src/DateUtils.js index 545d92dd3b..79f5e1cfc0 100644 --- a/src/DateUtils.js +++ b/src/DateUtils.js @@ -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}`; }