Skip to content

Commit 945d55a

Browse files
committed
[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'.
1 parent 924756f commit 945d55a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

docs/reference/query-dsl/range-query.asciidoc

+11-10
Original file line numberDiff line numberDiff line change
@@ -214,19 +214,20 @@ UTC offset. For example:
214214
----
215215
GET _search
216216
{
217-
"query": {
218-
"range" : {
219-
"timestamp" : {
220-
"time_zone": "+01:00", <1>
221-
"gte": "2015-01-01 00:00:00", <2>
222-
"lte": "now" <3>
223-
}
224-
}
217+
"query": {
218+
"range": {
219+
"timestamp": {
220+
"time_zone": "+01:00", <1>
221+
"gte": "2020-01-01T00:00:00", <2>
222+
"lte": "now" <3>
223+
}
225224
}
225+
}
226226
}
227227
----
228+
// TEST[continued]
228229

229230
<1> Indicates that `date` values use a UTC offset of `+01:00`.
230231
<2> With a UTC offset of `+01:00`, {es} converts this date to
231-
`2014-12-31T23:00:00 UTC`.
232-
<3> The `time_zone` parameter does not affect the `now` value.
232+
`2019-12-31T23:00:00 UTC`.
233+
<3> The `time_zone` parameter does not affect the `now` value.

0 commit comments

Comments
 (0)