diff options
Diffstat (limited to 'script.js')
| -rw-r--r-- | script.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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})`)); } }); } |
