# Timezone offset for the day starting at +00:00 after applying an offset

**URL:** <https://discuss.elastic.co/t/timezone-offset-for-the-day-starting-at-00-00-after-applying-an-offset/169621>\
**Category:** Elasticsearch\
**Created:** [February 22, 2019, 6:23pm UTC](https://discuss.elastic.co/t/timezone-offset-for-the-day-starting-at-00-00-after-applying-an-offset/169621 "2019-02-22T18:23:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![srizzle](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@srizzle](https://discuss.elastic.co/u/srizzle)\
**Post date:** [February 22, 2019, 6:23pm UTC](https://discuss.elastic.co/t/timezone-offset-for-the-day-starting-at-00-00-after-applying-an-offset/169621/1 "2019-02-22T18:23:29Z")

</div>

```
{
    "size": 0,
    "query": {
        "range": {
            "escalationDate": {
                "gte": "now-6d/d",
                "time_zone": "[(${timezoneOffset})]"
            }
        }
    },
    "aggs": {
        "total_escalated_conversations_per_hour_per_week": {
            "date_histogram": {
                "field": "escalationDate",
                "interval": "hour",
                "time_zone": "[(${timezoneOffset})]",
                "extended_bounds": {
                    "min": "now-6d/d",
                    "max": "now+1d/d-1h"
                }
            }
        }
    }
}

```

Hey, is it possible to have this start at +00:00 for each day after the timezoneOffset has been applied?

---

<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:** [March 22, 2019, 6:23pm UTC](https://discuss.elastic.co/t/timezone-offset-for-the-day-starting-at-00-00-after-applying-an-offset/169621/2 "2019-03-22T18:23:34Z")

</div>

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