mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
switch to utc time everywhere (#1167)
* switch to utc time everywhere Co-authored-by: alteredCoder <kevin@crowdsec.net>
This commit is contained in:
parent
b1a7ffb92f
commit
cc1ab8c50d
74 changed files with 1106 additions and 391 deletions
|
@ -73,7 +73,7 @@ func FormatOneAlert(alert *ent.Alert) *models.Alert {
|
|||
})
|
||||
}
|
||||
for _, decisionItem := range alert.Edges.Decisions {
|
||||
duration := decisionItem.Until.Sub(time.Now()).String()
|
||||
duration := decisionItem.Until.Sub(time.Now().UTC()).String()
|
||||
outputAlert.Decisions = append(outputAlert.Decisions, &models.Decision{
|
||||
Duration: &duration, // transform into time.Time ?
|
||||
Scenario: &decisionItem.Scenario,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue