2 ms·
No consideration of timezones. Looks like I still need MomentJS
by Macha 7y ago
No consideration of timezones.
Looks like I still need MomentJS
- leetbulb 7y agoYep, timezone support is the primary reason I use MomentJS
- zcdziura 7y agoIf you do find the size of MomentJS to be troublesome for your particular usecase, and are in need of handling timezones, Luxon is a great alternative. It's from the authors of Moment, and I believe it uses the built-in i18n APIs found within modern browsers to handle timezones.
- networkimprov 7y ago+1 for Luxon.
- 33degrees 7y agodate-fns v2 supports timezones with the date-fns-timezone package https://www.npmjs.com/package/date-fns-timezone https://www.npmjs.com/package/date-fns-timezone. Works well for me so far.
- ddoolin 7y agoThis is great news! Thanks for sharing. We've been pulling in moment-tz where needed but using date-fns in projects where timezones weren't needed.