# Time shift Kibana vs. Elasticsearch

**URL:** <https://discuss.elastic.co/t/time-shift-kibana-vs-elasticsearch/324653>\
**Category:** Kibana\
**Created:** [February 3, 2023, 1:46pm UTC](https://discuss.elastic.co/t/time-shift-kibana-vs-elasticsearch/324653 "2023-02-03T13:46:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmslara.a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tmslara.a/32/116339_2.png) [@tmslara.a](https://discuss.elastic.co/u/tmslara.a)\
**Post date:** [February 3, 2023, 1:46pm UTC](https://discuss.elastic.co/t/time-shift-kibana-vs-elasticsearch/324653/1 "2023-02-03T13:46:46Z")

</div>

Hi,

I have an index in Elasticsearch. When I check - using the search API - the oldest timestamp of my data is 2023-01-13 00:00:00 (I previously applied a filter). However, when generating a Data View in Kibana the oldest timestamp displayed in Discover corresponds to 23-01-12 21:00:00 so I have a time shift of 3hrs between the "real" data and the data displayed in Kibana (the data also stops in Kibana three hours before the "real" end).

How can I configure Kibana to show exactly what I see in Elasticsearch? Is there any timezone configuration that I should apply?

Best regards

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 3, 2023, 4:17pm UTC](https://discuss.elastic.co/t/time-shift-kibana-vs-elasticsearch/324653/2 "2023-02-03T16:17:50Z")

</div>

Elasticsearch stores all time and date fields in UTC, when Kibana shows the time and date fields it will per default shift the time according to the browser timezone.

It looks like that you are in a timezone of UTC-3, so `2023-01-13 00:00:00` will appear in Kibana as `2023-01-12 21:00:00`, this is expected and it is not an issue.

The issue here is, the time `2023-01-13 00:00:00` is in UTC or is in UTC-3? If it is in UTC-3 you need to tell that while indexing your data, you need to inform elasticsearch that this time and date string has an offset of 3 hours, this is the correct way to deal with timezone issues.

You can however change the default timezone for Kibana and tell it to show the dates in UTC, but this can lead to confusion, as the dates in Kibana will be ahead of your local time.

---

<div class="post-metadata">

**Author:** ![tmslara.a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tmslara.a/32/116339_2.png) [@tmslara.a](https://discuss.elastic.co/u/tmslara.a)\
**Post date:** [February 3, 2023, 4:22pm UTC](https://discuss.elastic.co/t/time-shift-kibana-vs-elasticsearch/324653/3 "2023-02-03T16:22:47Z")

</div>

Thanks for your answer. It was exactly what you said. I solved my problem changing Kibana's configuration to show the dates in UTC (it makes sense for my use case to show everything in UTC). Thanks.

---

<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 3, 2023, 4:23pm UTC](https://discuss.elastic.co/t/time-shift-kibana-vs-elasticsearch/324653/4 "2023-03-03T16:23:37Z")

</div>

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