# Date Parsing the wrong Day

**URL:** https://discuss.elastic.co/t/date-parsing-the-wrong-day/91434
**Category:** Logstash
**Created:** [June 30, 2017, 1:16pm UTC](https://discuss.elastic.co/t/date-parsing-the-wrong-day/91434 "2017-06-30T13:16:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Lukas\_Tilch](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@Lukas\_Tilch](https://discuss.elastic.co/u/Lukas_Tilch)
#### Post date: [June 30, 2017, 1:16pm UTC](https://discuss.elastic.co/t/date-parsing-the-wrong-day/91434/1 "2017-06-30T13:16:51Z")

</div>

Hello, I have a rather unexpected problem with Logstashs Date filter.

I want to parse the Date 2017.05.30 with the YYYY.MM.dd  
I expected it to be parsed as 2017-05-30T00:00:00.000Z  
Instead it looks like this 2017-05-29T22:00:00.000Z

All fields that don't contain a Time the Day is set to the day before and T22 is added.  
i guess it's a timezone issue.  
Kibana translates the 29T22:00 back to 30 but on my website I get the response 2017-05-29T22 wich is shortend to2017-05-29.

any solution

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [June 30, 2017, 1:23pm UTC](https://discuss.elastic.co/t/date-parsing-the-wrong-day/91434/2 "2017-06-30T13:23:39Z")

</div>

> All fields that don't contain a Time the Day is set to the day before and T22 is added.

No, what happens is that your timezone apparently is UTC+2 and the output of the date filter is always UTC, so it correctly subtracts two hours.

> Kibana translates the 29T22:00 back to 30 but on my website I get the response 2017-05-29T22 wich is shortend to2017-05-29.

Sounds like your web site should adjust the UTC timestamp to a better timezone.

---

<div class="post-metadata">

### Author: ![Lukas\_Tilch](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@Lukas\_Tilch](https://discuss.elastic.co/u/Lukas_Tilch)
#### Post date: [July 3, 2017, 9:00am UTC](https://discuss.elastic.co/t/date-parsing-the-wrong-day/91434/3 "2017-07-03T09:00:12Z")

</div>

Thanks for the answer.

Im sorry for that quiestion, wich now seems so stupid to me

I've never thought of tha date filter in Angular but now i know.

Assuming the error in Logstash rather than in my own work was foolish

---

<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 31, 2017, 9:00am UTC](https://discuss.elastic.co/t/date-parsing-the-wrong-day/91434/4 "2017-07-31T09:00:18Z")

</div>

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