From 5c623c3149c5b9f8d2ba2fb4e646a9415a8f40e0 Mon Sep 17 00:00:00 2001 From: di1ara Date: Mon, 17 Jun 2024 16:59:43 -0400 Subject: [PATCH 1/2] update to 2024 --- tz.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tz.html b/tz.html index 1530289..e3b3b67 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(``); }, ""); From b72d68dabf09ab498afc4d2c23d1ddaaf947850a Mon Sep 17 00:00:00 2001 From: di1ara Date: Mon, 17 Jun 2024 17:11:02 -0400 Subject: [PATCH 2/2] updated date --- tz.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tz.html b/tz.html index e3b3b67..6889984 100644 --- a/tz.html +++ b/tz.html @@ -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;