# Time\_zone parameter

**URL:** <https://discuss.elastic.co/t/time-zone-parameter/275161>\
**Category:** Elasticsearch\
**Created:** [June 7, 2021, 1:51pm UTC](https://discuss.elastic.co/t/time-zone-parameter/275161 "2021-06-07T13:51:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![qwerty123](https://avatars.discourse-cdn.com/v4/letter/q/54ee81/32.png) [@qwerty123](https://discuss.elastic.co/u/qwerty123)\
**Post date:** [June 7, 2021, 1:51pm UTC](https://discuss.elastic.co/t/time-zone-parameter/275161/1 "2021-06-07T13:51:29Z")

</div>

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"  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 7, 2021, 1:56pm UTC](https://discuss.elastic.co/t/time-zone-parameter/275161/2 "2021-06-07T13:56:15Z")

</div>

Welcome!

Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). 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.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 7, 2021, 2:32pm UTC](https://discuss.elastic.co/t/time-zone-parameter/275161/4 "2021-06-07T14:32:09Z")

</div>

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**".

---

<div class="post-metadata">

**Author:** ![qwerty123](https://avatars.discourse-cdn.com/v4/letter/q/54ee81/32.png) [@qwerty123](https://discuss.elastic.co/u/qwerty123)\
**Post date:** [June 7, 2021, 2:41pm UTC](https://discuss.elastic.co/t/time-zone-parameter/275161/6 "2021-06-07T14:41:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2021, 2:41pm UTC](https://discuss.elastic.co/t/time-zone-parameter/275161/7 "2021-07-05T14:41:38Z")

</div>

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