[DOCS] Fix time_zone example in range query docs (#50830)

One of the example snippets in the range query docs was missing a
required 'T' in the `date` format. This adds the required 'T'.
This commit is contained in:
James Rodewig 2020-01-10 07:23:25 -06:00
parent 48e5eece1e
commit 4629a9714c
1 changed files with 11 additions and 10 deletions

View File

@ -215,18 +215,19 @@ UTC offset. For example:
GET _search
{
"query": {
"range" : {
"timestamp" : {
"range": {
"timestamp": {
"time_zone": "+01:00", <1>
"gte": "2015-01-01 00:00:00", <2>
"gte": "2020-01-01T00:00:00", <2>
"lte": "now" <3>
}
}
}
}
----
// TEST[continued]
<1> Indicates that `date` values use a UTC offset of `+01:00`.
<2> With a UTC offset of `+01:00`, {es} converts this date to
`2014-12-31T23:00:00 UTC`.
`2019-12-31T23:00:00 UTC`.
<3> The `time_zone` parameter does not affect the `now` value.