From 117bce9c1ab354a6d5411e25a32429f9c3c3a29f Mon Sep 17 00:00:00 2001 From: Joris Date: Wed, 10 Feb 2021 13:28:04 +0100 Subject: [PATCH] Correct hour display When unit is minute --- components/metrics/BarChart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/metrics/BarChart.js b/components/metrics/BarChart.js index 4354f18c..05353b2b 100644 --- a/components/metrics/BarChart.js +++ b/components/metrics/BarChart.js @@ -44,7 +44,7 @@ export default function BarChart({ switch (unit) { case 'minute': - return index % 2 === 0 ? dateFormat(d, 'h:mm', locale) : ''; + return index % 2 === 0 ? dateFormat(d, 'H:mm', locale) : ''; case 'hour': return dateFormat(d, 'ha', locale); case 'day':