# Visualize a chart with time filter with 5/6 hours of difference

**URL:** <https://discuss.elastic.co/t/visualize-a-chart-with-time-filter-with-5-6-hours-of-difference/223563>\
**Category:** Kibana\
**Created:** [March 13, 2020, 6:51pm UTC](https://discuss.elastic.co/t/visualize-a-chart-with-time-filter-with-5-6-hours-of-difference/223563 "2020-03-13T18:51:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [March 13, 2020, 6:51pm UTC](https://discuss.elastic.co/t/visualize-a-chart-with-time-filter-with-5-6-hours-of-difference/223563/1 "2020-03-13T18:51:01Z")

</div>

I have a DateTime field named occurredOn which will tell me when the exception occurred on a machine. The issue at present is that the logs have the correct timestamp but when it gets into Kibana it automatically treats it as UTC. For e.g.

Log Time Stamp - 2020-03-10T12:30:35  
Kibana Time Stamp – March 10th 2020, 07:30:35.000

When creating the visualization, I would like to have the filter in such a way that it converts the time and then retrieve the actual chart. Is there a way I can do this ? May be a scripted field inside Kibana visualization.

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8afece35e2a75279080210451001d51acfed3892.png)

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [March 13, 2020, 8:48pm UTC](https://discuss.elastic.co/t/visualize-a-chart-with-time-filter-with-5-6-hours-of-difference/223563/2 "2020-03-13T20:48:10Z")

</div>

All dates are stored in UTC (as milliseconds since the epoch, when using a `date` datatype). Kibana uses the browser timezone, you can change that, see [https://www.elastic.co/guide/en/kibana/current/advanced-options.html](https://www.elastic.co/guide/en/kibana/current/advanced-options.html)

You can modify your queries or use an ingestion pipeline to get your data properly converted

Some more discuss posts around it suggesting same thing. : [Date field saved as default timezone](https://discuss.elastic.co/t/date-field-saved-as-default-timezone/211143/5)

---

<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:** [April 10, 2020, 8:48pm UTC](https://discuss.elastic.co/t/visualize-a-chart-with-time-filter-with-5-6-hours-of-difference/223563/3 "2020-04-10T20:48:14Z")

</div>

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