Skip to main content

countdown timer, "penny auction"

1 reply [Last post]
1975rock
Offline
Joined: 2012-09-23
Points: 0

Having a bit of problems. developing a penny auction website. The countdown timer shows different for different users. individual computer clocks are different by a few sec, thereby throwing off the count down timer. How to I resolve this issue.

Thank you in advance.

Ben

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jamesharte
Offline
Joined: 2012-09-28
Points: 0

You should never rely on the clock for the individual machines. Even if the machines are on the same network and the network updates the times of the machines regularly, there will always be drift. Can you have all of them pull the times from the server, or have the server publish the time to all clients?