audit table should use UTC time
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-15 11:01:41 +11:00
parent db63b89c61
commit e71c9e6df8

View File

@@ -20,7 +20,7 @@ func (a *Audit) AuditAdd() (*Audit, error) {
// Populate timestamp field if not already set
if a.EventTime.IsZero() {
a.EventTime = time.Now()
a.EventTime = time.Now().UTC()
}
result, err := db.NamedExec(("INSERT INTO audit (UserId, SecretId, EventText, EventTime) VALUES (:UserId, :SecretId, :EventText, :EventTime);"), a)