javascript - Getting the current GMT world time -


How do I get the current time? (In javascript)

Your computer time is not:

  now = new date; Now_string = addZero (now.getHours ()) + ":" + addZero (now .getMinutes ()) + ":" + addZero (now .getSeconds ());  

But the real real world time?

Do I have to connect to the server (most likely yes, which one and how can I get time from it?):

Edit:

If the user's computer has a wrong time, I want to avoid showing the wrong time.

Comments