Skip to content

Commit

Permalink
updated date
Browse files Browse the repository at this point in the history
  • Loading branch information
di1ara committed Jun 17, 2024
1 parent 5c623c3 commit b72d68d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tz.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ <h5 class="card-header">Time slot selector</h5>

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));
}
Expand All @@ -299,11 +299,11 @@ <h5 class="card-header">Time slot selector</h5>
var theStr = "<p>";
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;
Expand Down

0 comments on commit b72d68d

Please sign in to comment.