timestamps written into the database should really be UTC

This commit is contained in:
2025-10-13 15:31:43 -06:00
parent abd14ea24e
commit 55f5cc5eca
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ func (ar *AuditRecord) Store() error {
if ar.Record > 0 {
return fmt.Errorf("audit record %d already stored", ar.Record)
}
moment := time.Now()
moment := time.Now().UTC()
rs, err := amdb.Exec(`INSERT INTO audit (on_date, event, uid, commid, ip, data1, data2, data3, data4)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);`, moment, ar.Event, ar.Uid, ar.CommId, ar.IP,
ar.Data1, ar.Data2, ar.Data3, ar.Data4)