diff --git a/tz.html b/tz.html index 1530289..6889984 100644 --- a/tz.html +++ b/tz.html @@ -25,7 +25,7 @@
Time slot selector

- CHOOSE YOUR TIMEZONE (based on July 2023):

Course times:

@@ -218,7 +218,7 @@
Time slot selector
.reduce((memo, tz) => { memo.push({ name: tz, - offset: moment("2023-07-11").tz(tz).utcOffset() + offset: moment("2024-07-11").tz(tz).utcOffset() }); return memo; @@ -227,7 +227,7 @@
Time slot selector
return a.offset - b.offset }) .reduce((memo, tz) => { - const timezone = tz.offset ? moment("2023-07-11").tz(tz.name).format('Z') : ''; + const timezone = tz.offset ? moment("2024-07-11").tz(tz.name).format('Z') : ''; return memo.concat(``); }, ""); @@ -289,7 +289,7 @@
Time slot selector
var deltas = [] for(var prop in startTimes0) { - var startTime0 = moment.tz("2021-07-13 " + startTimes0[prop][0], "UTC").clone().tz(document.getElementById('timezone').value).format().substr(11, 5); + var startTime0 = moment.tz("2024-07-13 " + startTimes0[prop][0], "UTC").clone().tz(document.getElementById('timezone').value).format().substr(11, 5); var fracHour = Number(startTime0.substr(0, 2)) + Number(startTime0.substr(3, 2)) / 60.0; deltas.push(Math.abs(fracHour - 8.6)); } @@ -299,11 +299,11 @@
Time slot selector
var theStr = "

"; var i = 0; for(var prop in startTimes) { - var startTime = moment.tz("2021-07-13 " + startTimes[prop][0], "UTC").clone().tz(document.getElementById('timezone').value).format().substr(11, 5); - var endTime = moment.tz("2021-07-13 " + startTimes[prop][1], "UTC").clone().tz(document.getElementById('timezone').value).format().substr(11, 5); + var startTime = moment.tz("2024-07-13 " + startTimes[prop][0], "UTC").clone().tz(document.getElementById('timezone').value).format().substr(11, 5); + var endTime = moment.tz("2024-07-13 " + startTimes[prop][1], "UTC").clone().tz(document.getElementById('timezone').value).format().substr(11, 5); - var startTime2 = moment.tz("2021-07-13 " + startTimes2[prop][0], "UTC").clone().tz(document.getElementById('timezone').value).format().substr(11, 5); - var endTime2 = moment.tz("2021-07-13 " + startTimes2[prop][1], "UTC").clone().tz(document.getElementById('timezone').value).format().substr(11, 5); + var startTime2 = moment.tz("2024-07-13 " + startTimes2[prop][0], "UTC").clone().tz(document.getElementById('timezone').value).format().substr(11, 5); + var endTime2 = moment.tz("2024-07-13 " + startTimes2[prop][1], "UTC").clone().tz(document.getElementById('timezone').value).format().substr(11, 5); var bold = false;