# Kibana is changing my dates to a different timezone

**URL:** <https://discuss.elastic.co/t/kibana-is-changing-my-dates-to-a-different-timezone/106042>\
**Category:** Kibana\
**Created:** [November 1, 2017, 2:10pm UTC](https://discuss.elastic.co/t/kibana-is-changing-my-dates-to-a-different-timezone/106042 "2017-11-01T14:10:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pshroads](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@pshroads](https://discuss.elastic.co/u/pshroads)\
**Post date:** [November 1, 2017, 2:10pm UTC](https://discuss.elastic.co/t/kibana-is-changing-my-dates-to-a-different-timezone/106042/1 "2017-11-01T14:10:23Z")

</div>

I'm on elasticsearch + kibana 6.0.0-rc2. I have a date field defined in my index like this:

`"timestamp" : { "type" : "date", "format" : "date_hour_minute_second_fraction" },`

and an example of my data in elasticsearch looks like this:

`"timestamp": "2017-11-01T09:49:23.593",`

But in the kibana discovery the date is being changed by 4 hours and looks like this:

`timestamp:November 1st 2017, 05:49:23.593`

I'm in the US Eastern timezone and my machine time is set correctly. I've tried changing the Kibana setting `dateFormat:tz` to `US/Eastern` to no avail.

Thanks

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 1, 2017, 2:14pm UTC](https://discuss.elastic.co/t/kibana-is-changing-my-dates-to-a-different-timezone/106042/2 "2017-11-01T14:14:46Z")

</div>

All timestamps in Elasticsearch are assumed/required to be in UTC. Are your events adhering to this?

---

<div class="post-metadata">

**Author:** ![pshroads](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@pshroads](https://discuss.elastic.co/u/pshroads)\
**Post date:** [November 1, 2017, 2:36pm UTC](https://discuss.elastic.co/t/kibana-is-changing-my-dates-to-a-different-timezone/106042/3 "2017-11-01T14:36:54Z")

</div>

Yes that was the problem. I was not inserting UTC dates in to the elasticsearch index. I'm still not sure though why kibana would make the decision to adjust the date as opposed to just returning what is in the index.

Anyway, thanks for the quick answer.

-Patrick

---

<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 29, 2017, 2:37pm UTC](https://discuss.elastic.co/t/kibana-is-changing-my-dates-to-a-different-timezone/106042/4 "2017-11-29T14:37:13Z")

</div>

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