mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 10:05:36 +01:00
fix: show year instead of epoch
This commit is contained in:
parent
586529a5ca
commit
2b5429aa1f
1 changed files with 2 additions and 0 deletions
|
|
@ -52,6 +52,8 @@ export function BarChart({
|
||||||
return dateFormat(d, 'MMM d', locale);
|
return dateFormat(d, 'MMM d', locale);
|
||||||
case 'month':
|
case 'month':
|
||||||
return dateFormat(d, 'MMM', locale);
|
return dateFormat(d, 'MMM', locale);
|
||||||
|
case 'year':
|
||||||
|
return dateFormat(d, 'YYY', locale);
|
||||||
default:
|
default:
|
||||||
return label;
|
return label;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue