The time displayed in the worldclock box is only correct immediately after saving the configuration.

After a reload there seems to be some kind of timezone confusion.

Pressing save again shows the correct times, but after a reload ( or navgiation to a different page) the worldblock block shows uncorrect time info.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

flevour’s picture

Could you please try to disable any caching you may have enabe under admin/settings/performance and report if the issue is still present? Also keep in mind the 2.x series is not production ready yet.
Thank you very much,
Francesco

gurubert’s picture

Page cache was set to "Normal" and block cache was enabled.

I disabled block cache and time display is now correct in the worldclock block.

Is that because the JavaScript code is only added to the page via drupal_add_js() in the "view" operation section of worldclock_block() and this gets not called if the block contents are cached?

flevour’s picture

Probably yes.
I'll try to check it out soon. In case you have the expertise required, any patch is welcome :)))
Thanks for the feedback,
Francesco

dailypress’s picture

Cool Module. I tried a few middle eastern countries and noticed the time for Iran is not correct.
Please google: tehran time : I believe the WorldClock is 1 hour behind for Iran.