# Change existing timezone

**URL:** <https://discuss.elastic.co/t/change-existing-timezone/139717>\
**Category:** Logstash\
**Created:** [July 12, 2018, 9:45am UTC](https://discuss.elastic.co/t/change-existing-timezone/139717 "2018-07-12T09:45:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![inhinyera16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inhinyera16/32/61625_2.png) [@inhinyera16](https://discuss.elastic.co/u/inhinyera16)\
**Post date:** [July 12, 2018, 9:45am UTC](https://discuss.elastic.co/t/change-existing-timezone/139717/1 "2018-07-12T09:45:06Z")

</div>

Hi all,

We do have 2 datetime field named @Timestamp (which is UCT by default) and logdate (no timezone set, means default to UTC). Now we would like to map the logdate field to a specific timezone say canadian timezone, will elasticsearch store this in UTC? what will happen to our previous logdate data?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 12, 2018, 2:46pm UTC](https://discuss.elastic.co/t/change-existing-timezone/139717/2 "2018-07-12T14:46:50Z")

</div>

elasticsearch always stores dates in UTC. If you start setting a timezone on a date filter it will not affect documents that have already been indexed.

---

<div class="post-metadata">

**Author:** ![inhinyera16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inhinyera16/32/61625_2.png) [@inhinyera16](https://discuss.elastic.co/u/inhinyera16)\
**Post date:** [July 13, 2018, 6:50am UTC](https://discuss.elastic.co/t/change-existing-timezone/139717/3 "2018-07-13T06:50:49Z")

</div>

Thanks for the reply badger,

So what exactly happened is that, we do have a logdate field which is canada time (EDT), but since we havent put the timezone, it automatically stored as UTC by default. So what if we have this scenario.

1st ingest (no timezone specified): timestamp= 2:44 AM  
2nd ingest (with timezone specified): timestamp= 6:44 AM

take note the original timestamp is 2:44 AM.

---

<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:** [August 10, 2018, 6:50am UTC](https://discuss.elastic.co/t/change-existing-timezone/139717/4 "2018-08-10T06:50:49Z")

</div>

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