From efa1eefbc36ac490f4c15eccd6db5b1cc2e37432 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sat, 28 Nov 2026 22:39:07 -0500 Subject: add local text --- script.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'script.js') diff --git a/script.js b/script.js index 47249339..7830de2b 100644 --- a/script.js +++ b/script.js @@ -118,9 +118,11 @@ document.querySelectorAll('.sched-entry').forEach((o) => { localStart = (new Date(o.getAttribute('start'))).toLocaleString([], dateOptions); localEnd = (new Date(o.getAttribute('end'))).toLocaleString([], dateOptions); o.setAttribute('title', 'Your local time: ~ ' + localStart + ' to ~ ' + localEnd); + o.appendChild(document.createTextNode(` (Local: ${localStart} - ${localEnd})`)); } else if (o.getAttribute('start')) { localStart = (new Date(o.getAttribute('start'))).toLocaleString([], dateOptions); o.setAttribute('title', 'Your local time: ~ ' + localStart); + o.appendChild(document.createTextNode(` (Local: ${localStart})`)); } }); } -- cgit v1.2.3