# Enforce Timezone in Elastic Search Index

**URL:** https://discuss.elastic.co/t/enforce-timezone-in-elastic-search-index/53719
**Category:** Elasticsearch
**Created:** [June 23, 2016, 1:43am UTC](https://discuss.elastic.co/t/enforce-timezone-in-elastic-search-index/53719 "2016-06-23T01:43:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BrendanThompson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brendanthompson/32/10492_2.png) [@BrendanThompson](https://discuss.elastic.co/u/BrendanThompson)
#### Post date: [June 23, 2016, 1:43am UTC](https://discuss.elastic.co/t/enforce-timezone-in-elastic-search-index/53719/1 "2016-06-23T01:43:11Z")

</div>

I have net flow data that's DateTime is in local timezone (GMT+10). However when elastic search creates the index it assumes that the data is in UTC, therefore all my times are skewed. Just wondering if there is a way to say to elastic search that the data is in local and not UTC?

The `@timestamp` is in the correct format and timezone, however the field `tm` is completely skewed.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [June 24, 2016, 1:11am UTC](https://discuss.elastic.co/t/enforce-timezone-in-elastic-search-index/53719/2 "2016-06-24T01:11:33Z")

</div>

ES assumes UTC by default and then Kibana converts to the local browser TZ. If you are using Logstash then you can tell it how to ensure the [ES encoded timestamp contains the TZ](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html), otherwise just make sure you [pass it in so that ES can handle it appropriately](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/date.html).

---

<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, 2017, 10:40pm UTC](https://discuss.elastic.co/t/enforce-timezone-in-elastic-search-index/53719/3 "2017-07-05T22:40:56Z")

</div>


