elasticsearch/docs/reference/watcher/trigger
Luke Whiting 5c97b2e87d
(#34659) - Add Timezone Configuration to Watcher (#117033) (#117456)
* Add timezone support to Cron objects

* Add timezone support to CronnableSchedule

* XContent change to support parsing and display of TimeZone fields on schedules

* Case insensitive timezone parsing

* Doc changes

* YAML REST tests

* Equals, toString and HashCode now include timezone

* Additional random testing for DST transitions

* Migrate Cron class to use wrapped LocalDateTime

The algorithm depends on some quirks of calendar but LocalDateTime
correctly ignores DST during calculations so this uses a LocalDateTime
with a wrapper to emulate some of Calendar's behaviours that the Cron
algorithm depends on

* Additional documentation to explain discontinuity event behaviour

* Remove redundant conversions from ZoneId to TimeZone following move to LocalDateTime

* Add documentation warning that manual clock changes will cause unpredictable watch execution

* Update docs/reference/watcher/trigger/schedule.asciidoc



---------

Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com>
2024-11-25 21:58:16 +11:00
..
schedule (#34659) - Add Timezone Configuration to Watcher (#117033) (#117456) 2024-11-25 21:58:16 +11:00
schedule.asciidoc (#34659) - Add Timezone Configuration to Watcher (#117033) (#117456) 2024-11-25 21:58:16 +11:00