ui: squeeze time ranges for charts
This commit is contained in:
parent
1799f9d4a2
commit
9e17673a4a
1 changed files with 2 additions and 2 deletions
|
|
@ -73,12 +73,12 @@ export function getDateRangeFromValue(value) {
|
|||
return Interval.fromDateTimes(now.minus({ hours: 24 }), now);
|
||||
case DATE_RANGE_VALUES.LAST_7_DAYS:
|
||||
return Interval.fromDateTimes(
|
||||
now.minus({ days: 7 }).startOf('day'),
|
||||
now.minus({ days: 6 }).startOf('day'),
|
||||
now.endOf('day')
|
||||
);
|
||||
case DATE_RANGE_VALUES.LAST_30_DAYS:
|
||||
return Interval.fromDateTimes(
|
||||
now.minus({ days: 30 }).startOf('day'),
|
||||
now.minus({ days: 29 }).startOf('day'),
|
||||
now.endOf('day')
|
||||
);
|
||||
case COMPARISON_DATE_RANGE_LABELS.PREV_24_HOURS:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue