Revert "Merge pull request #330 from kadimi/patch-6"

This reverts commit 04e2ceef77, reversing
changes made to 62ddc695a9.
This commit is contained in:
Brian Miyaji
2019-06-01 12:16:53 +10:00
parent 8c78128ace
commit d742457204

View File

@@ -466,8 +466,15 @@ jQuery(document).ready(function($){
// Iterate every second
var x = setInterval(function() {
// Get todays date and time
var now = new Date();
// Convert curent date and time to UTC
var tzDifference = now.getTimezoneOffset();
var nowutc = new Date(now.getTime() + tzDifference * 60 * 1000);
// Find the distance between now and the count down date
var distance = countDownDate - (new Date);
var distance = countDownDate - nowutc;
if ( distance < 0 ) {
distance = 0;
}