From b73d2f42997e302a358fcc4f87cbc0034735fa0e Mon Sep 17 00:00:00 2001 From: Willie Date: Thu, 26 Feb 2026 21:59:50 +0800 Subject: [PATCH] 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. --- ui/src/pages/LogPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/pages/LogPage.tsx b/ui/src/pages/LogPage.tsx index 65a0ad895..7fc707c68 100644 --- a/ui/src/pages/LogPage.tsx +++ b/ui/src/pages/LogPage.tsx @@ -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; } }