moment-timezone icon indicating copy to clipboard operation
moment-timezone copied to clipboard

Alternative with historical data

Open wclr opened this issue 4 years ago • 1 comments

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?

wclr avatar Sep 16 '20 08:09 wclr

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.

gilmoreorless avatar Jan 23 '21 06:01 gilmoreorless

@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.

ichernev avatar Aug 26 '22 12:08 ichernev