Correct hour display

When unit is minute
This commit is contained in:
Joris 2021-02-10 13:28:04 +01:00 committed by GitHub
parent 30ebf7b266
commit 117bce9c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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':