Previous answers on here pointed me to moment.js for javascript date handling and I am really happy to find it. I can parse and manipulate quite happily.
The users on my website look at info relating to diverse physical sites/locations, and I want to show associated datetimes in the time specific to that location, not the users location.
Each physical site has a timezone attribute string like “Europe/London” or “Europe/Amsterdam”
My datetimes are all stored and delivered from the DB in UTC.
Is there a clever simple way I can render my moment.js object in any specified timezone?
Theoretically, you could do something like this.
However, this requires that you know the correct offset, so it won’t take into consideration daylight saving time.