# Logstash set hour %{+HH} timezone on strings?

**URL:** https://discuss.elastic.co/t/logstash-set-hour-hh-timezone-on-strings/75236
**Category:** Logstash
**Created:** [February 15, 2017, 5:51pm UTC](https://discuss.elastic.co/t/logstash-set-hour-hh-timezone-on-strings/75236 "2017-02-15T17:51:47Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![mostolog](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@mostolog](https://discuss.elastic.co/u/mostolog)
#### Post date: [February 16, 2017, 9:09am UTC](https://discuss.elastic.co/t/logstash-set-hour-hh-timezone-on-strings/75236/3 "2017-02-16T09:09:07Z")

</div>

Damn it!  
Any way to extract HH from @timestamp field (already with TZ and DST?) regex? substring? event['@timestamp][x..y]? [Substring in logstash](https://discuss.elastic.co/t/substring-in-logstash/57070)

Regards

---

_[View the full topic](https://discuss.elastic.co/t/logstash-set-hour-hh-timezone-on-strings/75236)._
