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?

CommentFileSizeAuthor
#6 Clock_setting.jpg98.7 KBastra
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tstoeckler’s picture

Can 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.

tstoeckler’s picture

Status: Active » Postponed (maintainer needs more info)
astra’s picture

Tested 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?

tstoeckler’s picture

OK, I'll try that, thanks.

tstoeckler’s picture

Hmm, that also works fine for me.
Can you please post exactly how you have set up your module. That would be awesome.

astra’s picture

FileSize
98.7 KB

The 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.

tstoeckler’s picture

Ahh, 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?

astra’s picture

Hmm, 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?

tstoeckler’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Yes, 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.