Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UTC when rendering alert and silence dates #2439

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tbregolin
Copy link
Contributor

This mirrors the behaviour of the Alertmanager UI, which converts the
inputed string into UTC. This is better because otherwise you get mixed
timezones in the string representations when you query the
/api/v2/silences endpoint, for instance. It is also more "correct"
because Alertmanager uses UTC for presenting and updating dates, and so
amtool should do the same.

This mirrors the behaviour of the Alertmanager UI, which converts the
inputed string into UTC. This is better because otherwise you get mixed
timezones in the string representations when you query the
/api/v2/silences endpoint, for instance. It is also more "correct"
because Alertmanager uses UTC for presenting and updating dates, and so
amtool should do the same.

Signed-off-by: Thomas Bregolin <[email protected]>
@simonpasquier
Copy link
Member

I'm confused how it changes anything to the current implementation. AFAICT this PR would only change the representation of what's being sent to the API.

@stale stale bot added the stale label Mar 29, 2021
@roidelapluie
Copy link
Member

it means that the bug is that we do not convert the date when returning it to the user.

@stale stale bot removed the stale label Aug 4, 2021
@stale stale bot added the stale label Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants