Merge pull request #161 from teaxyz/bugfix/add-tz-to-countdown

add tz to scheduled countdown timer to produce correct relative countdown
This commit is contained in:
Neil 2022-11-02 20:57:36 +08:00 committed by GitHub
commit 79fc39a709
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,7 +173,8 @@ integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+
<script>
// Set the date we're counting down to
var countDownDate = new Date("Nov 3, 2022 07:30:00").getTime();
const teaDemoSchedule = "2022-11-03T07:30:00.000-04:00"; // Lisbon is UTC+0
var countDownDate = new Date(teaDemoSchedule).getTime();
// Update the count down every 1 second
var x = setInterval(function() {