From ada4787868b97bc7e4d4c3da25dc549080e4d3bc Mon Sep 17 00:00:00 2001 From: Jan Unterbrink <19386509+subpathdev@users.noreply.github.com> Date: Sun, 1 Nov 2026 17:26:10 +0100 Subject: [PATCH] fix: always show times on the 24 hour clock The format followed the phone's language, so an English phone showed "5:25 PM". It stays in the phone's time zone. Co-Authored-By: Claude Opus 5.5 --- internal/web/static/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/web/static/index.html b/internal/web/static/index.html index a4340df..1aade80 100644 --- a/internal/web/static/index.html +++ b/internal/web/static/index.html @@ -92,7 +92,7 @@

Heating

// Thermostats report at least about every 25 minutes. const staleAfterMs = 2 * 3600 * 1000; - const clock = iso => new Date(iso).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }); + const clock = iso => new Date(iso).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); const degrees = v => v == null ? '–' : v.toFixed(1) + ' °C'; const signed = s => (s > 0 ? '+' : '−') + Math.abs(s); const inRange = v => v >= data.minTarget && v <= data.maxTarget;