Hi folks!
I would like to add a block with the Javascript Countdown Timer to tell the user the time left until the full hour. Then again it should reset and start counting down minutes and seconds left. The server's timezone should be fine, allthough i guess this doesn't matter because the full hour is the same everywhere ^_^
Probably a quite simple task, but I am not too familiar with PHP.
Thanks in advance for any help on this.
kind regards,
Alec

Comments

Al.D’s picture

Title: a hourly countdown for Javascript Countdown Timer » a hourly countdown for Javascript Timer
Project: Javascript Countdown Timer » Javascript Timer
Version: 6.x-1.3 » 6.x-1.4
Component: Code » Documentation
jvandervort’s picture

Component: Documentation » Code
Category: support » feature

I think it would be best implemented with a new widget type. The timer widget counts up or down from a certain datetime. While you could fake it with a dynamic datetime which changes on the page reload and then at the top of the hour force a page reload, it wouldn't be the best way to go about things. If you still want this, I'd probably put it in the 7.x branch since I don't use 6.x much anymore.

Anyone else out there want to vote for this feature? Let's hear from you.

jvandervort’s picture

Just an aside, the full hour isn't the same everywhere. There are 1/2 timezones.

Some examples:
India is +5½ from UTC,
Myanmar (Burma) is +6½,
Iran is +4½,
Iraq is +3½,
Nepal is +5¾,
Central Australia is +9½.
Venezuela is -4 1/2,
the Canadian island of Newfoundland is -3½ hours from UTC,
some smaller islands in French Polynesia are -9½, while the Pitcairn Islands are -8½.

Crazy huh?