Hi

I am trying to use JST_CLOCK feature to show multiple time zones in a block.
I am not able to find any where in documentation which can tell how to configure clock format it.

Month/day/year hh:mm:ss Timezone

Also need to show current clock for multiple timezones to present various locations like
New York to show US EST time
India to show IST time

Any help would be appreciated

Thanks

Comments

jvandervort’s picture

Right now there is no support for this.
Using fixed timezone offsets, it wouldn't be a big deal to implement. The problem shows up with daylight saving time. There is no way to tell whether the other timezones (ie not the client's) use daylight saving time(or not) or the dates when daylight saving time shifts. Javascript does not have a master library containing this feature so it would either require a fairly substantial lookup table to cover the entire world or require the user to pass the data in the api.

onefang’s picture

Getting the PHP to figure out the timezone offset and pass it should do the trick. I'm trying to do the same thing now, create a block using this module with several time zones shown in it. My first attempt I tried to get clever with the arguments to the timer. Now USA is counting down, Europe and Australia is counting up, and the wrong day is show when the time zones are in different days.

Guess I'll have to hack on the clock widget now.