mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 09:57:00 +01:00
Fix for minimum date unit.
This commit is contained in:
parent
c96f317487
commit
2826e561cf
@ -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 New Issue
Block a user