summaryrefslogtreecommitdiffstats
path: root/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'script.js')
-rw-r--r--script.js7
1 files changed, 7 insertions, 0 deletions
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;