mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-25 03:20:21 +01:00
Updated minimum date check.
This commit is contained in:
parent
cfa568f15c
commit
4e77d95809
@ -261,7 +261,7 @@ export function getMinimumUnit(startDate: number | Date, endDate: number | Date)
|
|||||||
return 'minute';
|
return 'minute';
|
||||||
} else if (differenceInHours(endDate, startDate) <= 48) {
|
} else if (differenceInHours(endDate, startDate) <= 48) {
|
||||||
return 'hour';
|
return 'hour';
|
||||||
} else if (differenceInCalendarMonths(endDate, startDate) <= 12) {
|
} else if (differenceInCalendarMonths(endDate, startDate) <= 6) {
|
||||||
return 'day';
|
return 'day';
|
||||||
} else if (differenceInCalendarMonths(endDate, startDate) <= 24) {
|
} else if (differenceInCalendarMonths(endDate, startDate) <= 24) {
|
||||||
return 'month';
|
return 'month';
|
||||||
|
Loading…
Reference in New Issue
Block a user