mirror of
https://github.com/ivabus/www
synced 2024-11-22 14:45:05 +03:00
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:
commit
79fc39a709
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue