mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-16 18:04:52 +00:00
Before this change DateTimes were being constructed without providing a time zone, this was causing some non-utc time leakage. In particular watch record ids were being created with non utc dates and watch records were going to the wrong .watch_history index. Add Clock.now(DateTimeZone) to allow callers to get UTC now. Also construct the DateTimes with UTC timezones when we construct from millis. Add all constuctors of DateTime that do not specify a time zone to the forbidden APIs. This change makes constructing a `DateTime` object without providing a `DateTimeZone` forbidden. This is much safer and makes time zone errors much more unlikely to occur. Statically import DateTimeZone.UTC everywhere it was being used Now all calls that use DateTimeZone.UTC just refrence UTC. Fixes elastic/elasticsearch#150 Original commit: elastic/x-pack-elasticsearch@7f23ce605e
= Elasticsearch Alerts Plugin This plugins adds alerting features to elasticsearch You can build the plugin with `mvn package`. The documentation is put in the `docs/` directory.
Description
Languages
Java
99.5%
Groovy
0.4%