mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 17:15:37 +01:00
fix minute x-axis date labels
This commit is contained in:
parent
4d54f50739
commit
cd532fd53d
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ export function renderDateLabels(unit: string, locale: string) {
|
||||||
|
|
||||||
switch (unit) {
|
switch (unit) {
|
||||||
case 'minute':
|
case 'minute':
|
||||||
return formatDate(d, 'p', locale).split(' ')[0];
|
return formatDate(d, 'h:mm', locale).split(' ')[0];
|
||||||
case 'hour':
|
case 'hour':
|
||||||
return formatDate(d, 'p', locale);
|
return formatDate(d, 'p', locale);
|
||||||
case 'day':
|
case 'day':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue