Documents that now is not affected by time_zone in range queries

This commit is contained in:
André Carvalho 2015-09-23 22:00:49 -03:00
parent 1fd8c64f1f
commit d90fc8f7fd

View File

@ -109,12 +109,13 @@ accepts it), or it can be specified as the `time_zone` parameter:
"range" : {
"timestamp" : {
"gte": "2015-01-01 00:00:00", <1>
"lte": "now",
"lte": "now", <2>
"time_zone": "+01:00"
}
}
}
--------------------------------------------------
<1> This date will be converted to `2014-12-31T23:00:00 UTC`.
<2> `now` is not affected by the `time_zone` parameter (dates should be stored as UTC).