Skip to content

Commit

Permalink
Pin the to date to the start of the current day.
Browse files Browse the repository at this point in the history
  • Loading branch information
dubiousdavid committed Jun 17, 2024
1 parent 107754b commit 88f3f22
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/provider-elasticsearch/src/utils/dateUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ export let rangeToDatemath = {
last30Days: { from: 'now-30d', to: 'now' },
last90Days: { from: 'now-90d', to: 'now' },
last180Days: { from: 'now-180d', to: 'now' },
last12Months: { from: 'now/d-12M', to: 'now' },
last15Months: { from: 'now/d-15M', to: 'now' },
last18Months: { from: 'now/d-18M', to: 'now' },
last24Months: { from: 'now/d-24M', to: 'now' },
last36Months: { from: 'now/d-36M', to: 'now' },
last48Months: { from: 'now/d-48M', to: 'now' },
last60Months: { from: 'now/d-60M', to: 'now' },
last12Months: { from: 'now/d-12M', to: 'now/d' },
last15Months: { from: 'now/d-15M', to: 'now/d' },
last18Months: { from: 'now/d-18M', to: 'now/d' },
last24Months: { from: 'now/d-24M', to: 'now/d' },
last36Months: { from: 'now/d-36M', to: 'now/d' },
last48Months: { from: 'now/d-48M', to: 'now/d' },
last60Months: { from: 'now/d-60M', to: 'now/d' },
lastCalendarMonth: { from: 'now-1M/M', to: 'now/M-1ms' },
lastCalendarYear: { from: 'now-1y/y', to: 'now/y-1ms' },
thisCalendarMonth: { from: 'now/M', to: 'now+1M/M-1ms' },
Expand Down

0 comments on commit 88f3f22

Please sign in to comment.