# HG changeset patch # User Matthew Wild # Date 1680865206 -3600 # Node ID 0091b7de276392dc2007094d8f8bdb807f8fb198 # Parent 4fc3277a914d494864112439aab278716330151f mod_audit: Allow caller to specify time of the event diff -r 4fc3277a914d -r 0091b7de2763 mod_audit/mod_audit.lua --- a/mod_audit/mod_audit.lua Fri Apr 07 11:38:46 2023 +0200 +++ b/mod_audit/mod_audit.lua Fri Apr 07 12:00:06 2023 +0100 @@ -111,7 +111,7 @@ end end - local id, err = stores[host]:append(nil, nil, stanza, time_now(), user_key); + local id, err = stores[host]:append(nil, nil, stanza, extra and extra.timestamp or time_now(), user_key); if err then module:log("error", "failed to persist audit event: %s", err); return