moment-timezone
moment-timezone copied to clipboard
Alternative with historical data
So as the project is announced to be deprecated, what are js alternatives/solutions that support providing correct data about timezone offset in America/New_York
on the March 1st of 1971
?
The Moment documentation has some recommendations for other libraries: https://momentjs.com/docs/#/-project-status/recommendations/
Anything based on the Intl
API (e.g. Luxon) should support your use case.
@wclr if your project needs some heavy lifting around all the timezones, it makes sense to use the IANA database directly (i.e compile what is necessary and use it in your codebase). If you have to support older browsers and want something hands-off, moment(-timezone) is not going anywhere, just won't get any exciting new features.