Skip to content

Commit

Permalink
Specify format for date range query (elastic#81025) (elastic#81179)
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallmain authored Oct 20, 2020
1 parent e0f0269 commit f7108a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,7 @@ describe('get_filter', () => {
'@timestamp': {
gte: 'now-5m',
lte: 'now',
format: 'strict_date_optional_time',
},
},
},
Expand Down Expand Up @@ -1148,6 +1149,7 @@ describe('get_filter', () => {
'event.ingested': {
gte: 'now-5m',
lte: 'now',
format: 'strict_date_optional_time',
},
},
},
Expand Down Expand Up @@ -1183,6 +1185,7 @@ describe('get_filter', () => {
'@timestamp': {
gte: 'now-5m',
lte: 'now',
format: 'strict_date_optional_time',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export const buildEqlSearchRequest = (
[timestamp]: {
gte: from,
lte: to,
format: 'strict_date_optional_time',
},
},
},
Expand Down

0 comments on commit f7108a9

Please sign in to comment.