Frequently Asked Questions
Frequently Asked Questions
Samples of Countdown Timers > FAQ > Frequently Asked Questions

Search knowledgebase:  

How do I remove the time zone setting so that the timer uses the time zone of the viewer?


To remove all references to the time zone setting, delete the following two parts of the code (that are striked out and in red below):

var todaystring=Date.parse(todaystring1)+(tz*1000*60*60);

and also delete:

var futurestring=Date.parse(futurestring1)-(today.getTimezoneOffset()*(1000*60));

so that you should have:

var todaystring=Date.parse(todaystring1)


var futurestring=Date.parse(futurestring1);

left in the script. You can also delete the following line since that will no longer be needed:

var tz=
Was this article helpful? yes / no
Article details
Article ID: 11
Category: Time Zone Issues
Views: 183
Rating (Votes): Article rated 3.6/5.0 (28)

« Go back

• • • Powered by Help Desk Software HESK • • •
Licensed to
JavaScript tutorials
Dragon NaturallySpeaking 11 Premium by Nuance