Commit de461d2
Always use UTC Timezone for Silence
When creating a Silence, users can specify the startsAt and endsAt times using a date-time
picker on the UI. This picker displays the current date and time based on the user's browser.
However, these values are sent to the Promgen server without a timezone. As a result, Promgen
automatically adds the server's current timezone as the Silence's timezone. This can lead to
time discrepancies if the timezones between the user and the Promgen server are different.
To fix this issue, we have updated the UI to always use UTC date and time when sending a
Silence creation request to the Promgen server. This ensures that UTC is consistently used
across the client, the server, and Alertmanager.1 parent c3d1c02 commit de461d2
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
261 | 265 | | |
262 | 266 | | |
263 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments