JavaScript new Date()
return the current system date (not the correct date, because I have changed my system date).
So is it possible to get accurate date using JavaScript? If yes, how?
CodePudding user response:
Not on the client, but there are several public web services providing the accurate date and time, e.g:
http://worldtimeapi.org/api/timezone/Europe/Berlin
Replace the timezone "Europe/Berlin" with whatever is appropriate for you.