# How to change time zone in Kibana for the Index date field

**URL:** <https://discuss.elastic.co/t/how-to-change-time-zone-in-kibana-for-the-index-date-field/234770>\
**Category:** Elasticsearch\
**Created:** [May 28, 2020, 3:24pm UTC](https://discuss.elastic.co/t/how-to-change-time-zone-in-kibana-for-the-index-date-field/234770 "2020-05-28T15:24:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjunathpb](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@manjunathpb](https://discuss.elastic.co/u/manjunathpb)\
**Post date:** [May 28, 2020, 3:24pm UTC](https://discuss.elastic.co/t/how-to-change-time-zone-in-kibana-for-the-index-date-field/234770/1 "2020-05-28T15:24:03Z")

</div>

We have 3 Date fields which is getting converted to UTC time zone by default, I would like to change the UTC time Zone to America/New\_York timezone. Could you please let me know how to change it.

Awaiting your reply,

Thanks & Regards,  
Manjunath

---

<div class="post-metadata">

**Author:** ![ssouris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssouris/32/68657_2.png) [@ssouris](https://discuss.elastic.co/u/ssouris)\
**Post date:** [May 28, 2020, 3:40pm UTC](https://discuss.elastic.co/t/how-to-change-time-zone-in-kibana-for-the-index-date-field/234770/2 "2020-05-28T15:40:23Z")

</div>

What is your use case?

Ideally you should store the date fields in UTC and leave the timezone to the client that does the query on that field.

---

<div class="post-metadata">

**Author:** ![manjunathpb](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@manjunathpb](https://discuss.elastic.co/u/manjunathpb)\
**Post date:** [May 29, 2020, 10:52am UTC](https://discuss.elastic.co/t/how-to-change-time-zone-in-kibana-for-the-index-date-field/234770/3 "2020-05-29T10:52:24Z")

</div>

While inserting the data to elastic search, the above 3 date fields were loaded in UTC timezone instead of America/New\_York timezone. Now the data which is getting displayed in Kibana is not correct. Now I would like of change the Timezone in the elastic search data.

If possible, could you please suggest the solution for this issue.

Thanks & Regards,  
Manjunath

---

<div class="post-metadata">

**Author:** ![ssouris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssouris/32/68657_2.png) [@ssouris](https://discuss.elastic.co/u/ssouris)\
**Post date:** [May 29, 2020, 10:58am UTC](https://discuss.elastic.co/t/how-to-change-time-zone-in-kibana-for-the-index-date-field/234770/4 "2020-05-29T10:58:15Z")

</div>

Elasticsearch stores the date in UTC internally, and I don't think it can change.  
Check this [https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html).

Kibana will use your local timezone to display those UTC dates.  
Can you please show how you send the dates to Elaticsearch?

---

<div class="post-metadata">

**Author:** ![manjunathpb](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@manjunathpb](https://discuss.elastic.co/u/manjunathpb)\
**Post date:** [May 29, 2020, 11:06am UTC](https://discuss.elastic.co/t/how-to-change-time-zone-in-kibana-for-the-index-date-field/234770/5 "2020-05-29T11:06:53Z")

</div>

We are using the JDBC Query to get the data from the Database, while retrieving the data, in the query itself we give UTC time conversion as given below.

TO\_CHAR(CAST(STARTTIME AS TIMESTAMP) AT TIME ZONE 'UTC','YYYY-MM-DD hh24:mi:ss')  
TO\_CHAR(CAST(ENDTIME AS TIMESTAMP) AT TIME ZONE 'UTC','YYYY-MM-DD hh24:mi:ss')

Thanks & Regards,  
Manjunath

---

<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:** [June 26, 2020, 11:07am UTC](https://discuss.elastic.co/t/how-to-change-time-zone-in-kibana-for-the-index-date-field/234770/6 "2020-06-26T11:07:08Z")

</div>

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