From 8452ca8dc3b58600051095a038e232132291236b Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Fri, 23 Oct 2026 12:11:01 -0700 Subject: translate --- script.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script.js b/script.js index 3ed6ee0a..47249339 100644 --- a/script.js +++ b/script.js @@ -102,6 +102,13 @@ addLocalTimeToSVGs(); document.querySelector('.times').querySelector('.others').style.display = 'none'; } } +document.querySelectorAll('.sched-entry').forEach((o) => { + var localStart = (new Date(o.getAttribute('data-start'))).toLocaleString([], { timeStyle: 'short' }).replace(/\./g, ''); + var localEnd = (new Date(o.getAttribute('data-end'))).toLocaleString([], { hour: 'numeric', minute: 'numeric', timeZoneName: 'short' }).replace(/\./g, ''); + o.querySelector('.sched-start').textContent = localStart; + o.querySelector('.sched-end').textContent = localEnd; +}); + if (document.querySelector('.time-overlay')) { document.querySelectorAll('.time-overlay').forEach(function (o) { if (o.getAttribute('title')) return; -- cgit v1.2.3