# Timezone problem in ElasticSearch and Logstash

**URL:** <https://discuss.elastic.co/t/timezone-problem-in-elasticsearch-and-logstash/180163>\
**Category:** Logstash\
**Created:** [May 8, 2019, 11:20am UTC](https://discuss.elastic.co/t/timezone-problem-in-elasticsearch-and-logstash/180163 "2019-05-08T11:20:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 8, 2019, 2:04pm UTC](https://discuss.elastic.co/t/timezone-problem-in-elasticsearch-and-logstash/180163/2 "2019-05-08T14:04:51Z")

</div>

Does [this](https://discuss.elastic.co/t/error-logstash-inputs-jdbc-unable-to-connect-to-database/177091/4) help?

Timestamps are stored in elasticsearch as UTC. logstash will assume your dates are in your local timezone. If your MySQL server is not in your local timezone you will need to tell logstash (or jdbc) that.

---

_[View the full topic](https://discuss.elastic.co/t/timezone-problem-in-elasticsearch-and-logstash/180163)._
