mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Updated minimum date check.
This commit is contained in:
parent
cfa568f15c
commit
4e77d95809
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ export function getMinimumUnit(startDate: number | Date, endDate: number | Date)
|
|||
return 'minute';
|
||||
} else if (differenceInHours(endDate, startDate) <= 48) {
|
||||
return 'hour';
|
||||
} else if (differenceInCalendarMonths(endDate, startDate) <= 12) {
|
||||
} else if (differenceInCalendarMonths(endDate, startDate) <= 6) {
|
||||
return 'day';
|
||||
} else if (differenceInCalendarMonths(endDate, startDate) <= 24) {
|
||||
return 'month';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue