Commit efd3b9d
fix(plugin-audit): write explicit ISO timestamp on sys_activity rows
The sys_activity.timestamp column declares defaultValue: 'NOW()' as a
framework convention, but the SQL driver currently stores it as a
literal string instead of translating it to CURRENT_TIMESTAMP, so every
audit row that relied on the default leaked the string 'NOW()' into the
record and the timeline rendered 'Invalid Date'.
Set timestamp explicitly to new Date().toISOString() in the audit
writer so we don't depend on the driver-side resolution. Filed
separately as M11 — the broader 'NOW()' default-value sweep across
platform-objects (sys-comment, sys-notification, sys-presence, …) still
needs the driver fix.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 6a78c59 commit efd3b9d
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
| |||
0 commit comments