# How to keep logstash date type?

**URL:** <https://discuss.elastic.co/t/how-to-keep-logstash-date-type/259742>\
**Category:** Logstash\
**Created:** [December 28, 2020, 4:00pm UTC](https://discuss.elastic.co/t/how-to-keep-logstash-date-type/259742 "2020-12-28T16:00:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [December 28, 2020, 4:39pm UTC](https://discuss.elastic.co/t/how-to-keep-logstash-date-type/259742/3 "2020-12-28T16:39:36Z")

</div>

If your database has date columns then I believe the jdbc input will convert them to date type in logstash. That will be in UTC. [This](https://discuss.elastic.co/t/error-logstash-inputs-jdbc-unable-to-connect-to-database/177091/4) post, and the links to it, may help you to adjust the timezone.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-keep-logstash-date-type/259742)._
