mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Added more date filter options.
This commit is contained in:
parent
b873ea38ea
commit
09a161d04a
3 changed files with 12 additions and 3 deletions
|
|
@ -182,8 +182,8 @@ export function parseDateRange(value: string | object, locale = 'en-US'): DateRa
|
|||
case 'month':
|
||||
return {
|
||||
startDate: subMonths(startOfMonth(now), num),
|
||||
endDate: subMonths(endOfMonth(now), num),
|
||||
unit: 'day',
|
||||
endDate: subMonths(endOfMonth(now), num ? 1 : 0),
|
||||
unit: num ? 'month' : 'day',
|
||||
offset: 0,
|
||||
num: num || 1,
|
||||
value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue