switch to utc time everywhere (#1167)

* switch to utc time everywhere


Co-authored-by: alteredCoder <kevin@crowdsec.net>
This commit is contained in:
Thibault "bui" Koechlin 2022-01-19 14:56:05 +01:00 committed by GitHub
parent b1a7ffb92f
commit cc1ab8c50d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 1106 additions and 391 deletions

View file

@ -239,7 +239,7 @@ func Parse(ctx UnixParserCtx, xp types.Event, nodes []Node) (types.Event, error)
}
event.Process = false
if event.Time.IsZero() {
event.Time = time.Now()
event.Time = time.Now().UTC()
}
if event.Parsed == nil {