Skip to content

Commit

Permalink
[DOCS] Fix time_zone example in range query docs (#50830)
Browse files Browse the repository at this point in the history
One of the example snippets in the range query docs was missing a
required 'T' in the `date` format. This adds the required 'T'.
  • Loading branch information
jrodewig committed Jan 10, 2020
1 parent 48e5eec commit 4629a97
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions docs/reference/query-dsl/range-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,20 @@ UTC offset. For example:
----
GET _search
{
"query": {
"range" : {
"timestamp" : {
"time_zone": "+01:00", <1>
"gte": "2015-01-01 00:00:00", <2>
"lte": "now" <3>
}
}
"query": {
"range": {
"timestamp": {
"time_zone": "+01:00", <1>
"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`.
<3> The `time_zone` parameter does not affect the `now` value.
`2019-12-31T23:00:00 UTC`.
<3> The `time_zone` parameter does not affect the `now` value.

0 comments on commit 4629a97

Please sign in to comment.