Date Countdown

Hi I am trying to make the date countdown clock as shown in this tutorial http://www.kirupa.com/developer/mx/countdown.htm

But i have found that it is miscalculating the countdown by 1 hour if you have more than 100 days to go.

Any idea why?

Thanks

Daylight saving!

You’ll need to adjust the script to take account of daylight saving according to your own timezone. A search on the forums should provide plenty of information:



That shouldnt make a difference as the file gets the local time off your machine, it has something to do when the count is more than 100 days to go.

Also i’m in Winter Time right now

Thanks though

[quote=glosrfc;2355258]Daylight saving!

You’ll need to adjust the script to take account of daylight saving according to your own timezone. A search on the forums should provide plenty of information:



It makes all the difference.

Your local (winter) time is taken off your machine but, in 100 days time or so, your locale will be in summer time hence the reason why it’s an hour out.

If you adjust your timer so that it counts down to next March (c.260 days) you’ll find that it’s still an hour out…but change your timer so that it counts down for a year and, as if by magic, it will be in time again. That hour difference is caused by the Flash Player making internal adjustments for daylight saving - check the entries in the Help files, specifically the ones for getTimeZoneOffset and Date.

Also note that different versions of the Player handle daylight savings in different ways, for example Flash Player 5 assumes that the transition dates between daylight savings time are the same as those in the US. This can lead to similar 1 hour differences for those parts of the world that transit to/from daylight savings time on a different date.

Ahhh i get what you mean, thanks glosrfc

I looked through the forums and the help files and cant find a way to adjust for daylight savings

I will keep looking