mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue