0

I host an SWF clock on my server, the problem is I can't set it to follow the host servers time, instead it follows the clock on my pc, is there a way for me to make the clock follow the server time?

this is the link for the clock

John Conde
  • 217,595
  • 99
  • 455
  • 496
telexper
  • 2,381
  • 8
  • 37
  • 66

1 Answers1

0

SWF is executed on the client so if the clock calls a method that determines the current time it is gonna be the time on the client. That said, it is of course possible to build a clock which follows the server time. For that, a service on the server needs to provide the current time information and send it to the client.

A related idea is adjusting the time found on the client with that on the server only once and then displaying client time + adjustment, see for instance Get the difference between a server side time and client side time and display it

Community
  • 1
  • 1
Henrik Mühe
  • 419
  • 3
  • 24