Specify format for date range query (#81025)

This commit is contained in:
Marshall Main 2020-10-20 10:23:00 -04:00 committed by GitHub
parent 35e21dbf37
commit 39242f11f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -1112,6 +1112,7 @@ describe('get_filter', () => {
'@timestamp': {
gte: 'now-5m',
lte: 'now',
format: 'strict_date_optional_time',
},
},
},
@ -1148,6 +1149,7 @@ describe('get_filter', () => {
'event.ingested': {
gte: 'now-5m',
lte: 'now',
format: 'strict_date_optional_time',
},
},
},
@ -1183,6 +1185,7 @@ describe('get_filter', () => {
'@timestamp': {
gte: 'now-5m',
lte: 'now',
format: 'strict_date_optional_time',
},
},
},

View file

@ -117,6 +117,7 @@ export const buildEqlSearchRequest = (
[timestamp]: {
gte: from,
lte: to,
format: 'strict_date_optional_time',
},
},
},