Closed (fixed)
Project:
Javascript Countdown Timer
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2008 at 00:08 UTC
Updated:
14 Nov 2008 at 14:21 UTC
I'm enjoying the module, but i can't figure out how to make it reflect the correct time.
The time is off by about 12 hours...Time zone is set up in drupal, and timer is set to 24 hours, and i read a previous support issue on this same topic, but i'm still stuck...here is the code snippet i'm using
<b>Countdown to Election</b>
<span class="countdowntimer">Count Down
<span style="display:none" class="datetime">2008-11-04T06:00:00-18:00</span>
<span style="display:none" class="tz_hours">-5</span>
<span style="display:none" class="dir">down</span>
<span style="display:none" class="format_txt"><em>Tuesday, November 4, 2008</em><br>%days% days + %hours%:%mins%:%secs%</span>
<span style="display:none" class="threshold">4</span>
<span style="display:none" class="complete">Custom Timer Complete Statement</span>
</span>
Also tried it without this line
<span style="display:none" class="tz_hours">-5</span>
Any help would be appreciated...
Also curious, if it possible to do a repeating timer (Id like to have a countdown timer for the stock market opening)
If not, will this be available in future versions
thanks
Comments
Comment #1
jvandervort commentedIn the version you are using the timezone is set in the datetime span (at the very end).
Which says you are 18 hours behind UMT, so if you want to be 5 hours behind, try this:
( 6am EST )
PS: It also relies on the web browser's time. If your computer is not correct, the countdown won't be either.
Also, nice catch on the change in daylight saving ending Nov 2. Currently you'll be 1 hour off on the countdown until
after Nov 2. Then the time will be correct. I just haven't got around to detecting daylight saving time.
Comment #2
jvandervort commentedFor a daily timer that resets you could use the php input format for a block or a node and use something like this:
(PHP 5.1+)
Comment #3
jvandervort commentedComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.