Date Parsing the wrong Day

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

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.

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

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