Skip to content

Commit 191f653

Browse files
authored
unify the output format of start_at and stop_at (#3819)
1 parent 660ce11 commit 191f653

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/apiserver/controllers/v1/alerts.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
)
2121

2222
func FormatOneAlert(alert *ent.Alert) *models.Alert {
23-
startAt := alert.StartedAt.String()
24-
StopAt := alert.StoppedAt.String()
23+
startAt := alert.StartedAt.Format(time.RFC3339)
24+
StopAt := alert.StoppedAt.Format(time.RFC3339)
2525

2626
machineID := "N/A"
2727
if alert.Edges.Owner != nil {

0 commit comments

Comments
 (0)