# Watcher trigger time has wrong working

**URL:** https://discuss.elastic.co/t/watcher-trigger-time-has-wrong-working/221805
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [March 3, 2020, 4:32am UTC](https://discuss.elastic.co/t/watcher-trigger-time-has-wrong-working/221805 "2020-03-03T04:32:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![maddog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddog/32/53018_2.png) [@maddog](https://discuss.elastic.co/u/maddog)
#### Post date: [March 3, 2020, 4:32am UTC](https://discuss.elastic.co/t/watcher-trigger-time-has-wrong-working/221805/1 "2020-03-03T04:32:07Z")

</div>

Dear All

```
 My Watcher can be work & alerted. 
 but watcher trigger with daily has wrong working.
 how to check what wrong of state?

```

Example Config Watcher Schedule trigger

```
"trigger": {
      "schedule": {
          "daily": {
            "at": [
              {
                "hour": [
                  0,
                  1,
                  2,
                  3,
                  4
                ],
                "minute": [
                  0,
                  5,
                  10,
                  15,
                  20,
                  25,
                  30,
                  35,
                  40,
                  45,
                  50,
                  55
                ]
              }
            ]
          }
        }
      }

```

Result execution history

 ![ELK_CaseKibana8](https://us1.discourse-cdn.com/elastic/original/3X/f/9/f94a32955f732faaca3543acf35cf5e3ca6b8e0c.jpeg)

---

<div class="post-metadata">

### Author: ![andres-perez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andres-perez/32/136461_2.png) [@andres-perez](https://discuss.elastic.co/u/andres-perez)
#### Post date: [March 5, 2020, 1:59pm UTC](https://discuss.elastic.co/t/watcher-trigger-time-has-wrong-working/221805/2 "2020-03-05T13:59:01Z")

</div>

Hi.  
As stated in the documentation: [Schedule Trigger | X-Pack for the Elastic Stack [6.2] | Elastic](https://www.elastic.co/guide/en/x-pack/current/trigger-schedule.html)

> Schedule [triggers](https://www.elastic.co/guide/en/x-pack/current/trigger.html) define when the watch execution should start based on date and time. All times are specified in UTC time.

so 04:00 UTC + 07:00 timezone offset = 11:00, it is the expected way of working.

I'm afraid there is no easy way to overcome UTC "translations" when working with watcher.

> <https://github.com/elastic/elasticsearch/issues/34659>
>
> \*\*Describe the Feature\*\*:
> 
> Since everything runs on UTC scheduled watches do n…ot shift by an hour every time daylight savings time occurs. I have seen since watcher 1.0 was around that it was always considered the responsibility of the user to arrange and maintain scheduled watches regardless of DST changes. For some users this is not easily scalable across multiple clusters with dozens of watches that must occur at the same \*relative\* time on a daily basis. It would be very useful within watcher to have a designated timezone configuration selection for scheduled watches that must be executed at the same relative time everyday instead of having to manually push the watch forwards or backwards an hour when the time change occurs.

---

<div class="post-metadata">

### Author: ![maddog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddog/32/53018_2.png) [@maddog](https://discuss.elastic.co/u/maddog)
#### Post date: [March 12, 2020, 9:02am UTC](https://discuss.elastic.co/t/watcher-trigger-time-has-wrong-working/221805/3 "2020-03-12T09:02:54Z")

</div>

Hi Andres

Thank you for the Update.

Now I try to Set schedule time with UTC Time.  
My Calculate **UTC Time -7** to my settings

IT WORK \<3  
👍 👍

Thankyou.

---

<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: [April 9, 2020, 9:02am UTC](https://discuss.elastic.co/t/watcher-trigger-time-has-wrong-working/221805/4 "2020-04-09T09:02:59Z")

</div>

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