mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Added date picker filter.
This commit is contained in:
parent
81789d6723
commit
60b17363e1
4 changed files with 71 additions and 13 deletions
|
|
@ -89,7 +89,7 @@ export function getDateRange(value) {
|
|||
|
||||
export function getDateRangeValues(startDate, endDate) {
|
||||
let unit = 'year';
|
||||
if (differenceInHours(endDate, startDate) <= 72) {
|
||||
if (differenceInHours(endDate, startDate) <= 48) {
|
||||
unit = 'hour';
|
||||
} else if (differenceInCalendarDays(endDate, startDate) <= 90) {
|
||||
unit = 'day';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue