This commit is contained in:
1 parent
db63b89c61
commit
e71c9e6df8
1 file changed
+1
-1
+1
-1
@@ -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