mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-26 02:01:09 +01:00
Merge pull request #2043 from tairosonloa/fix/gui-events-date-all-time
Fix: `BarChar` to correctly show year instead of epoch when unit is year
This commit is contained in:
commit
6abffe3e4b
@ -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…
Reference in New Issue
Block a user