Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Using the Clock module to set the local times for different cities, such as for New York, London, Amsterdam and Beijing. But they won't display right time except the moment after manually running cron.php.
How to keep the local times always correct with the Clock module?
Comment | File | Size | Author |
---|---|---|---|
#6 | Clock_setting.jpg | 98.7 KB | astra |
Comments
Comment #1
tstoecklerCan you post exactly how you have set up the module, please.
I just tried it out and it seemed to work for me.
Even a screenshot of the block configuration screen should be good.
Comment #2
tstoecklerComment #3
astra CreditAttribution: astra commentedTested this module again I find the problem seems for the anonymous users. If I log in the site the clock can views right times for different cities. If I log out the site the clock displays wrong times.
But I want to use this Clock to display times for anonymous. How to solve this issue?
Comment #4
tstoecklerOK, I'll try that, thanks.
Comment #5
tstoecklerHmm, that also works fine for me.
Can you please post exactly how you have set up your module. That would be awesome.
Comment #6
astra CreditAttribution: astra commentedThe local times display in the Clock block. The settings of the Beijing time, for example, can show up with the file attachment.
Anything wrong for my settings?
Also I find:
If I logged in, the clock displays correct just at this moment you switch to this clock page, then the clock stops, not goes ahead. After a while if you need right time you have to refresh this page.
If I logged out, the clock displays right times just at this moment logged out, then the clock always stops even though you refresh the page again.
Comment #7
tstoecklerAhh, are you talking about the JS updating of the clock, i.e. the "ticking" of the clock?
Yes, that is currently broken in 7.x-2.x.
There is also an issue about that: #1427420: Multiple Clocks - not correct time
Is that it?
Comment #8
astra CreditAttribution: astra commentedHmm, I think it's about the js updating. I'm using multiple clocks to display the local times of 6 cities. Will this issue be fixed next release?
Comment #9
tstoecklerYes, definitely. Once that is fixed, I will release an alpha or beta, and from then I think we can go to stable pretty quick.
I'm now marking this issue duplicate of #1427420: Multiple Clocks - not correct time. Please Subscribe there for updates.