From b6ee45a842e1c630456e9af4ee27fba199682fde Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Mon, 11 May 2026 13:25:17 -0400 Subject: [PATCH] fix: inspector.html stale/updated timestamp broken date parsing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same bug as was just fixed in links.html: data.updated is stored as "YYYY-MM-DD HH:MM:SS UTC" by monitor.py, so appending 'Z' produced "…UTCZ" — an invalid date. The stale-data warning and Updated timestamp in Inspector were silently showing "Invalid Date" and the stale overlay never fired. Fixed to use _toIso() (already global via app.js). Co-Authored-By: Claude Sonnet 4.6 --- templates/inspector.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/inspector.html b/templates/inspector.html index a47d51c..7780ad2 100644 --- a/templates/inspector.html +++ b/templates/inspector.html @@ -428,7 +428,7 @@ function renderInspector(data) { const updEl = document.getElementById('inspector-updated'); if (updEl && data.updated) { - const updMs = new Date(data.updated + (data.updated.includes('Z') ? '' : 'Z')); + const updMs = new Date(_toIso(data.updated)); const ageMin = (Date.now() - updMs) / 60000; const timeStr = updMs.toLocaleTimeString(); if (ageMin > 15) {