# Parsing timestamps with two-digit offsets

**URL:** <https://discuss.elastic.co/t/parsing-timestamps-with-two-digit-offsets/216885>\
**Category:** Logstash\
**Created:** [January 28, 2020, 4:55pm UTC](https://discuss.elastic.co/t/parsing-timestamps-with-two-digit-offsets/216885 "2020-01-28T16:55:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpeedDaemon](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@SpeedDaemon](https://discuss.elastic.co/u/SpeedDaemon)\
**Post date:** [January 28, 2020, 4:55pm UTC](https://discuss.elastic.co/t/parsing-timestamps-with-two-digit-offsets/216885/1 "2020-01-28T16:55:00Z")

</div>

The date filter seems to be able to handle TZ names, or offsets formatted as -0600 or -06:00. Mine are 2020-01-24 15:11:30-06. I can't find anything in the date filter documentation on how to handle just a two-digit offset.

---

<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:** [January 28, 2020, 10:00pm UTC](https://discuss.elastic.co/t/parsing-timestamps-with-two-digit-offsets/216885/2 "2020-01-28T22:00:38Z")

</div>

I would use mutate+gsub to append :00 to the field.

---

<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:** [February 25, 2020, 10:00pm UTC](https://discuss.elastic.co/t/parsing-timestamps-with-two-digit-offsets/216885/3 "2020-02-25T22:00:48Z")

</div>

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