I'm using momentjs in my project.
To get the current date and time in a given format I'm using this:
moment().format('ddd, D MMM HH:mm'); // Tue, 12 May 12:01
If I output this and view in my browser, I see Tue, 12 May 12:01. I'm currently in London which is UTC+1. If someone did the same from Florida, I assume they would see Tue, 12 May 07:01 (UTC-4)?
How can I make sure everyone views the UTC+1 time regardless of where they are in the world? I think the following would be the way to do it but am not sure.
moment().tz('Europe/London').format('ddd, D MMM HH:mm'); // Tue, 12 May 12:01
Hoping someone can explain.