DEV Community

Discussion on: What is the *legit* way to get the current date and time of system ?

Collapse
 
bitsrfr profile image
Joseph

Unfortunately, there's not really a better way to do it.

You can use a time API to get the global time. Essentially that pulls the time from a server that it synced with a global/atomic clock.

However, the time that returns may still have some delay depending on the network connection.