mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
increase minimum unit for day. Last 6 months includes current month
Some checks are pending
Node.js CI / build (push) Waiting to run
Some checks are pending
Node.js CI / build (push) Waiting to run
This commit is contained in:
parent
a2f0066c42
commit
355fa1e9a9
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ export function getMinimumUnit(
|
||||||
: differenceInDays(endDate, startDate) <= 30
|
: differenceInDays(endDate, startDate) <= 30
|
||||||
) {
|
) {
|
||||||
return 'hour';
|
return 'hour';
|
||||||
} else if (differenceInCalendarMonths(endDate, startDate) <= 6) {
|
} else if (differenceInCalendarMonths(endDate, startDate) <= 7) {
|
||||||
return 'day';
|
return 'day';
|
||||||
} else if (differenceInCalendarMonths(endDate, startDate) <= 24) {
|
} else if (differenceInCalendarMonths(endDate, startDate) <= 24) {
|
||||||
return 'month';
|
return 'month';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue