alertmanager/docs
Ben Ridley 33a0e77a71
Add timezone support to time intervals. (#2782)
* Add explicit UTC to time interval tests

Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Add timezone support to time intervals

Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Update time interval documentation with time zone info

Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Refactor notification tests to test timezone support

Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Make use of Local more clear

Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Fix documentation about timezone support.

Makes it clear that the default is UTC, but others are supported.

Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Remove commented/unused function

Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Fix tests using incorrect timezones

Previously tests were using time zone names that were unsupported by the
RFC822 parser. This switches the tests to use RFC822Z and specifies the
zones by number.

Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Add a few more timezone test cases

Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Remove unnecessary if/else branch

Co-authored-by: Sylvain Rabot <sylvain@abstraction.fr>
Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Rename timezone to location for consistency with Go stdlib

Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Make Windows timezone error more specific

Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Update docs to use 'location'

Signed-off-by: Ben Ridley <benridley29@gmail.com>

* Apply suggestions from code review

Co-authored-by: Sylvain Rabot <sylvain@abstraction.fr>
Signed-off-by: Ben Ridley <benridley29@gmail.com>

Signed-off-by: Ben Ridley <benridley29@gmail.com>
Co-authored-by: Sylvain Rabot <sylvain@abstraction.fr>
2022-09-22 14:45:17 +02:00
..
alertmanager.md Release 0.21 documentation (#2294) 2020-06-12 12:25:00 +02:00
clients.md Release 0.21 documentation (#2294) 2020-06-12 12:25:00 +02:00
configuration.md Add timezone support to time intervals. (#2782) 2022-09-22 14:45:17 +02:00
https.md Merge pull request #2956 from a-gavin/https_docs 2022-09-05 11:51:46 +02:00
index.md Release 0.21 documentation (#2294) 2020-06-12 12:25:00 +02:00
management_api.md /-/{healthy,ready}/ respond to HEAD (#3039) 2022-09-09 16:08:46 +02:00
notification_examples.md Updated docs. Fixed YAML newlines 2021-04-13 10:59:15 -04:00
notifications.md docs: Fix list formatting 2021-03-09 23:55:45 +01:00
overview.md Release 0.21 documentation (#2294) 2020-06-12 12:25:00 +02:00