I'm attempting to format 2014-10-03T23:09:42.764Z
using Moment with Timezones so that I can properly display it for the app's users. However, no matter what timezone I input into Moment it still keeps displaying the current locale's timezone: (I'm in EST)
moment('2014-10-03T23:09:42.764Z').tz('Europe/Paris').format()
"2014-10-03T19:09:42-04:00"
moment('2014-10-03T23:09:42.764Z').tz('Europe/London').format()
"2014-10-03T19:09:42-04:00"
Even though I input both London and Paris, it still displays it in my current timezone. Is there a way to force Moment to display in the given timezone?
Your code looks correct, and it works when testing in the Chrome dev tools debugger console while on the moment-timezone website:
Here's a working snippet:
I can only conclude that you have not loaded the moment-timezone data correctly.