mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
Fix for minimum date unit.
This commit is contained in:
parent
b246fca031
commit
d13f0bc5fe
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ export function getMinimumUnit(startDate, endDate) {
|
|||
return 'minute';
|
||||
} else if (differenceInHours(endDate, startDate) <= 48) {
|
||||
return 'hour';
|
||||
} else if (differenceInCalendarDays(endDate, startDate) <= 90) {
|
||||
} else if (differenceInCalendarMonths(endDate, startDate) <= 12) {
|
||||
return 'day';
|
||||
} else if (differenceInCalendarMonths(endDate, startDate) <= 24) {
|
||||
return 'month';
|
||||
|
|
|
|||
Loading…
Reference in a new issue