mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 02:06:19 +01:00
fix: show year instead of epoch
This commit is contained in:
parent
586529a5ca
commit
2b5429aa1f
@ -52,6 +52,8 @@ export function BarChart({
|
||||
return dateFormat(d, 'MMM d', locale);
|
||||
case 'month':
|
||||
return dateFormat(d, 'MMM', locale);
|
||||
case 'year':
|
||||
return dateFormat(d, 'YYY', locale);
|
||||
default:
|
||||
return label;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user