We have angular application that suppose to convert UTC datetime to User's Timezone. For this we are using moment.js
The Timezone user selects during registration is using the Windows TimeZoneInfo and we store the User's Timezone value as TimeZoneInfo.Id. Now this is a String value that I want to map with moment.js timezones.
So when I tried "moment("2015-02-25T08:57:54").tz('Eastern Standard Time').format('YYYY-MM-DD HH:mm a')" to covert to users timezone, it give error as Moment Timezone has no data for Eastern Standard Time. See http://momentjs.com/timezone/docs/#/data-loading/.
I am using "http://momentjs.com/downloads/moment-timezone-with-data.min.js" which I suppose to have all timezones. I have also gone through documnets and found that moment uses IANA Time Zone data and not Windows Timezone data
So my querires are:
- Am I missing on moment timezone data and isn't the above file have all the timezone data?
- Is the data in above file changes continuously ?
- How can I keep a track of latest moment.js timezone data ?
- How I can accurately map TimeZoneInfo.Id to moment.js timezone ?