fix(ui): compare last_operation timestamps as dates, not strings

RFC3339 string comparison fails with different timezone offsets.
Parse to Date before comparing to ensure correct ordering.
This commit is contained in:
Willie
2026-02-26 21:59:50 +08:00
parent 83df2b888c
commit b73d2f4299
+1 -1
View File
@@ -550,7 +550,7 @@ export default function LogPage() {
// Pick the most recent last_operation from the two sources
let lastOp = ops?.last_operation;
if (audit?.last_operation) {
if (!lastOp || audit.last_operation.ts > lastOp.ts) {
if (!lastOp || new Date(audit.last_operation.ts).getTime() > new Date(lastOp.ts).getTime()) {
lastOp = audit.last_operation;
}
}