# Convert timezone of @timestamp field

**URL:** <https://discuss.elastic.co/t/convert-timezone-of-timestamp-field/212703>\
**Category:** Logstash\
**Created:** [December 20, 2019, 8:05pm UTC](https://discuss.elastic.co/t/convert-timezone-of-timestamp-field/212703 "2019-12-20T20:05:26Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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 23, 2019, 4:30pm UTC](https://discuss.elastic.co/t/convert-timezone-of-timestamp-field/212703/6 "2019-12-23T16:30:23Z")

</div>

The trailing Z says the date is UTC, so the timezone option is ignored. Use mutate+gsub to remove it.

```
mutate { gsub => ["new_timestamp", "Z$", ""] }
```

---

_[View the full topic](https://discuss.elastic.co/t/convert-timezone-of-timestamp-field/212703)._
