Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
After a reload time info is not correct | 147.36 KB | gurubert | |
Correct times immediately after saving | 155.77 KB | gurubert |
Comments
Comment #1
flevour CreditAttribution: flevour commentedCould 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
Comment #2
gurubert CreditAttribution: gurubert commentedPage 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?
Comment #3
flevour CreditAttribution: flevour commentedProbably 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
Comment #4
dailypress CreditAttribution: dailypress commentedCool 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.