Time_zone parameter

hi !! does elasticsearch range query always work based on UTC time zone ?? if so, is it possible to change this and make it work according to user required time zone ??
even when i use time_zone parameter in my query, the results are returned based on utc time zone.
GET /_search
{
"query": {
"range": {
"timestamp": {
"time_zone": "+05:30",
"gte": "2020-01-01T00:00:00",
"lte": "now"
}
}
}
}

Welcome!

Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script is something anyone can copy and paste in Kibana dev console, click on the run button to reproduce your use case. It will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with </> icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

Also, please provide a "A full reproduction script is something anyone can copy and paste in Kibana dev console".

i just asked a simple question. thank you so much for not helping.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.