# Logstash timezone is not work

**URL:** <https://discuss.elastic.co/t/logstash-timezone-is-not-work/365466>\
**Category:** Logstash\
**Tags:** elastic-stack-alerting\
**Created:** [August 23, 2024, 2:40pm UTC](https://discuss.elastic.co/t/logstash-timezone-is-not-work/365466 "2024-08-23T14:40:54Z")\
**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:** [August 23, 2024, 2:50pm UTC](https://discuss.elastic.co/t/logstash-timezone-is-not-work/365466/2 "2024-08-23T14:50:46Z")

</div>

> [@Magali\_Romero](#):
>
> the alerts continue to arrive in UTC

The output of a date filter is _always_ UTC. The timezone option to a date filter tells the filter what timezone the input is in. But if the input field looks like "2024-08-23T14:38:10.928Z" then that Z at the end means the string is in UTC so the timezone option is ignored.

Depending on what you want to achieve it may be helpful to [remove the Z](https://discuss.elastic.co/t/convert-timezone-of-timestamp-field/212703/6) before calling the date filter. In other use cases you may need to [use ruby](https://discuss.elastic.co/t/convert-datetime-to-another-timezone-in-logstash/336214/9).

---

_[View the full topic](https://discuss.elastic.co/t/logstash-timezone-is-not-work/365466)._
