# Time Zone issue with Range Query

**URL:** <https://discuss.elastic.co/t/time-zone-issue-with-range-query/316764>\
**Category:** Elasticsearch\
**Created:** [October 17, 2022, 10:53am UTC](https://discuss.elastic.co/t/time-zone-issue-with-range-query/316764 "2022-10-17T10:53:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vipin.meshram13098](https://avatars.discourse-cdn.com/v4/letter/v/bbe5ce/32.png) [@vipin.meshram13098](https://discuss.elastic.co/u/vipin.meshram13098)\
**Post date:** [October 17, 2022, 10:53am UTC](https://discuss.elastic.co/t/time-zone-issue-with-range-query/316764/1 "2022-10-17T10:53:12Z")

</div>

Hello,

I am facing one strange issue with range query "time\_zone" parameter.

I have the Elasticsearch documents stored in the server of **America/Chicago** timezone.  
Basically, I am trying to fetch records from **"12:00 AM of 14th-October-2022"** in same **time\_zone(America/Chicago)** with my query which contains filter of one term and range queries as follows:

```auto
{
    "query": {
        "bool": {
            "must": [
                {
                    "range": {
                        "last_epoch": {
                            "time_zone": "America/Chicago",
                            "gte": "1665723600"
                        }
                    }
                },
                {
                    "term": {
                        "id": "60"
                    }
                }
            ]
        }
    }
}

```

This Query gives me 0 records but I have 10 records which qualify the above criteria. **I have tried with an time\_zone offset(-5:00) still doesn't working for America/Chicago time\_zone.**

**It works with other time\_zones like I tried with Asia/Kolkata time\_zone and its working as expected.**

**Note** - Server side we have **Elasticsearch 6** and on my local side **elasticSearch 7**.

Please, Any Suggestions?

---

<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:** [November 14, 2022, 10:53am UTC](https://discuss.elastic.co/t/time-zone-issue-with-range-query/316764/2 "2022-11-14T10:53:39Z")

</div>

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