summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--script.js2
1 files changed, 2 insertions, 0 deletions
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})`));
}
});
}