4fit?
09-08-2008, 05:31 PM
1) Script Title: Dynamic Countdown Script
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex6/dhtmlcount.htm
3) Describe problem:
I am currently viewing this script at 1:18 EDT. In the days before Chrismas example, it says "107 Days 11 Hours 41 Minutes 17 Seconds". However, since it is already 1:18, it should actually say "107 Days 10 Hours 41 Minutes 17 Seconds".
But, if you change it to say 10/31/2008, the hours correct themselves. I was thinking that it might be something dealing with the 31 day months, like October. But, I changed it to 3/31/2009 and the hours worked correctly. They also worked correctly for 5/31/2009. However, when I change it to 11/4/2009, the hours are off by one. After doing a little testing, this seems to happen whenever the date desired is between 11/2 and 3/8.
What in the world could be causing this? I thought leap years may be the culprit, but that seems like it would put the script off by a whole day, not just an hour. I am really stumped on this one and need to come up with some kind of solution as quickly as possible. :confused:
Any help and/or guidance would be greatly appreciated!
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex6/dhtmlcount.htm
3) Describe problem:
I am currently viewing this script at 1:18 EDT. In the days before Chrismas example, it says "107 Days 11 Hours 41 Minutes 17 Seconds". However, since it is already 1:18, it should actually say "107 Days 10 Hours 41 Minutes 17 Seconds".
But, if you change it to say 10/31/2008, the hours correct themselves. I was thinking that it might be something dealing with the 31 day months, like October. But, I changed it to 3/31/2009 and the hours worked correctly. They also worked correctly for 5/31/2009. However, when I change it to 11/4/2009, the hours are off by one. After doing a little testing, this seems to happen whenever the date desired is between 11/2 and 3/8.
What in the world could be causing this? I thought leap years may be the culprit, but that seems like it would put the script off by a whole day, not just an hour. I am really stumped on this one and need to come up with some kind of solution as quickly as possible. :confused:
Any help and/or guidance would be greatly appreciated!