Discussion on: How to get a city's current time independent of user's current time in JS?

eruizdechavez profile image
Erick Ruiz de Chavez

If I understand correctly, your problem is not showing the different timezones but making sure the local time is correct (and if not account for the difference). Without having to depend on an API I would attempt to use a JS implementation of NTP (Network Time Protocol) which is what most computers nowadays use to synchronize themselves.

If you want to dig in more, here are some links I found that might be useful: