Revert "Merge pull request #329 from kadimi/patch-5"
This reverts commit62ddc695a9, reversing changes made to72584a98f7.
This commit is contained in:
@@ -22,8 +22,15 @@ function sp_viewport() {
|
||||
// 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user