# Error timezone

**URL:** <https://discuss.elastic.co/t/error-timezone/136993>\
**Category:** Logstash\
**Created:** [June 22, 2018, 8:56am UTC](https://discuss.elastic.co/t/error-timezone/136993 "2018-06-22T08:56:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charaf\_Ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charaf_ahmed/32/30467_2.png) [@Charaf\_Ahmed](https://discuss.elastic.co/u/Charaf_Ahmed)\
**Post date:** [June 22, 2018, 8:56am UTC](https://discuss.elastic.co/t/error-timezone/136993/1 "2018-06-22T08:56:44Z")

</div>

Hello

I have a little problem that I can not solve for a while.

I have a field: `date: 20180612-2357` in string.  
I wanted to convert this field to date. I did like this (see the code after) but unfortunately, he converted it but it is less than two hours. I have a timezone problem.

```
date{
	locale => "fr" 
	match => ["date", "YYYYMMdd-HHmm", "yyyy/mm/dd hh:mm:ss +0200"]
	timezone => "Europe/Paris"
	target => "@timestamp_new"
	#timezone => "UTC"			
}

```

I am in Paris / Europe.  
I do not know the good timezone

Thank you

---

<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:** [June 22, 2018, 2:16pm UTC](https://discuss.elastic.co/t/error-timezone/136993/2 "2018-06-22T14:16:23Z")

</div>

The Elastic stack always stores dates in UTC. If your timestamps are in Europe/Paris then you should expect them to appear to be two hours earlier in elasticsearch. If you are using Kibana to visualize data then that will (by default) convert them back into the timezone used by the browser.

---

<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:** [July 20, 2018, 2:16pm UTC](https://discuss.elastic.co/t/error-timezone/136993/3 "2018-07-20T14:16:31Z")

</div>

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