audit table should use UTC time
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user