# How to use Kibana to display the localtime for dashlets?

**URL:** https://discuss.elastic.co/t/how-to-use-kibana-to-display-the-localtime-for-dashlets/168644
**Category:** Kibana
**Created:** [February 15, 2019, 8:27pm UTC](https://discuss.elastic.co/t/how-to-use-kibana-to-display-the-localtime-for-dashlets/168644 "2019-02-15T20:27:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sudhakar\_katakara](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sudhakar\_katakara](https://discuss.elastic.co/u/sudhakar_katakara)
#### Post date: [February 15, 2019, 8:27pm UTC](https://discuss.elastic.co/t/how-to-use-kibana-to-display-the-localtime-for-dashlets/168644/1 "2019-02-15T20:27:21Z")

</div>

We are inserting each record in elasticSearch index(test\_elastalert1) with having two time fields(from python code) as below

"time" : datetime.utcnow().isoformat()+'Z',

"local\_time" : datetime.now()

Below are the corresponding values for record in index,test\_elastalert1:

"local\_time":"2019-02-15T13:36:43.248000",

"time":"2019-02-15T19:36:43.248000Z"

We have inserted multiple records in index and able to see the total count when I run match\_all DSL query. But the count is not getting displayed correctly when I search last one hr. whereas if I select last 12hrs the data is displaying with local time stamp. I tried with local\_time and time in “date Histogram” .

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [February 22, 2019, 9:15am UTC](https://discuss.elastic.co/t/how-to-use-kibana-to-display-the-localtime-for-dashlets/168644/2 "2019-02-22T09:15:00Z")

</div>

Kibana uses the Browser timezone by default when displaying documents and working with time. You can set it in the Advanced settings and then you can check again your queries to see if it works as you want it then.

---

<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: [February 22, 2019, 9:21am UTC](https://discuss.elastic.co/t/how-to-use-kibana-to-display-the-localtime-for-dashlets/168644/3 "2019-02-22T09:21:41Z")

</div>

Elasticsearch and Kibana assumes/requires all timestamps stored to be in UTC timezone. If you are storing fields in a different timezone you are therefore see data offset.

---

<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, 9:21am UTC](https://discuss.elastic.co/t/how-to-use-kibana-to-display-the-localtime-for-dashlets/168644/4 "2019-03-22T09:21:48Z")

</div>

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