# Specify timezone when trigger watchers

**URL:** <https://discuss.elastic.co/t/specify-timezone-when-trigger-watchers/215222>\
**Category:** Elasticsearch\
**Created:** [January 15, 2020, 10:33pm UTC](https://discuss.elastic.co/t/specify-timezone-when-trigger-watchers/215222 "2020-01-15T22:33:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robinmhj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robinmhj/32/50716_2.png) [@robinmhj](https://discuss.elastic.co/u/robinmhj)\
**Post date:** [January 15, 2020, 10:33pm UTC](https://discuss.elastic.co/t/specify-timezone-when-trigger-watchers/215222/1 "2020-01-15T22:33:02Z")

</div>

Hi there,

I am using watcher to aggregate data, our elasticsearch instance is using utc time zone.

Is it possible to specify the time based on timezone, the reason I am asking it because that there are day light saving and the time it trigger really matters.

For example, I want to a watcher to run at 12PM US/EAST time, for now, it is 17 UTC, but when the day light saving is done, 17 UTC becomes 13 US/EAST, and I want the watcher to run at 12 US/EAST time all the time.

Is there a feature to specify the timezone when schedule a watcher job without changing the timezone of the elasticsearch instance? If not, is there a plan to add such feature?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)\
**Post date:** [January 15, 2020, 10:45pm UTC](https://discuss.elastic.co/t/specify-timezone-when-trigger-watchers/215222/2 "2020-01-15T22:45:14Z")

</div>

You should try to look for [crontab exection](https://www.elastic.co/guide/en/elasticsearch/reference/current/trigger-schedule.html#schedule-cron)

```auto
"trigger": {
    "schedule": {
      "cron": "* * * * * ?"
    }

```

Advanced cron can maybe solve it, i dont know much about timezones on Kibana

---

<div class="post-metadata">

**Author:** ![robinmhj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robinmhj/32/50716_2.png) [@robinmhj](https://discuss.elastic.co/u/robinmhj)\
**Post date:** [January 16, 2020, 2:32pm UTC](https://discuss.elastic.co/t/specify-timezone-when-trigger-watchers/215222/3 "2020-01-16T14:32:42Z")

</div>

Thanks for your reply.  
There are several things which can do the trigger besides crontab, I am not looking for how to trigger the job, I am looking for if there is any feature which supports specifying timezone?

---

<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 13, 2020, 2:36pm UTC](https://discuss.elastic.co/t/specify-timezone-when-trigger-watchers/215222/4 "2020-02-13T14:36:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![geekpete](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/geekpete/32/20409_2.png) [@geekpete](https://discuss.elastic.co/u/geekpete)\
**Post date:** [December 9, 2024, 12:05am UTC](https://discuss.elastic.co/t/specify-timezone-when-trigger-watchers/215222/5 "2024-12-09T00:05:08Z")

</div>

An enhancement PR now appears to provide timezone functionality to triggers in watcher in a future release.

This should then handle daylight savings changes automatically.

Issue: [Add Timezone Configuration to Watcher · Issue #34659 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues/34659)  
PR: [(#34659) - Add Timezone Configuration to Watcher by lukewhiting · Pull Request #117033 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/pull/117033)  
8.x Backport PR: [[8.x] (#34659) - Add Timezone Configuration to Watcher (#117033) by lukewhiting · Pull Request #117456 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/pull/117456)

eg. for versions that will support this enhancement:

```auto
"trigger" : {
  "schedule" : {
    "timezone": "Pacific/Auckland",
    "daily" : { "at" : "12:00" }
  }
}

```
