From a4d24a76ecc2ea39cccd6b1f683d852d56e8c127 Mon Sep 17 00:00:00 2001 From: Zoltan Date: Tue, 20 Feb 2024 13:37:41 -0500 Subject: [PATCH] Update tz.html --- tz.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tz.html b/tz.html index 185cb3d..ce10504 100644 --- a/tz.html +++ b/tz.html @@ -61,7 +61,7 @@
Time slot selector

-CHOOSE YOUR TIMEZONE (based on Jan 2024):

Course times:

@@ -254,7 +254,7 @@
Time slot selector
.reduce((memo, tz) => { memo.push({ name: tz, - offset: moment("2024-01-11").tz(tz).utcOffset() + offset: moment("2024-07-01").tz(tz).utcOffset() }); return memo; @@ -263,7 +263,7 @@
Time slot selector
return a.offset - b.offset }) .reduce((memo, tz) => { - const timezone = tz.offset ? moment("2024-01-11").tz(tz.name).format('Z') : ''; + const timezone = tz.offset ? moment("2024-07-01").tz(tz.name).format('Z') : ''; return memo.concat(``); }, ""); @@ -325,7 +325,7 @@
Time slot selector
var deltas = [] for(var prop in startTimes0) { - var startTime0 = moment.tz("2024-01-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)); } @@ -335,11 +335,11 @@
Time slot selector
var theStr = "

"; var i = 0; for(var prop in startTimes) { - var startTime = moment.tz("2024-01-13 " + startTimes[prop][0], "UTC").clone().tz(document.getElementById('timezone').value).format().substr(11, 5); - var endTime = moment.tz("2024-01-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("2024-01-13 " + startTimes2[prop][0], "UTC").clone().tz(document.getElementById('timezone').value).format().substr(11, 5); - var endTime2 = moment.tz("2024-01-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; if( bestDelta == i) {