News for hackers. Stuff that matters.
Re:You Don't Need MomentJS by Macha on Tuesday July 23, 2019 @01:01PM (#20508250)
No consideration of timezones.

Looks like I still need MomentJS

Re:You Don't Need MomentJS by zcdziura on Tuesday July 23, 2019 @01:07PM (#20508294)
If 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.
Re:You Don't Need MomentJS by networkimprov on Tuesday July 23, 2019 @02:21PM (#20508945)
+1 for Luxon.
Re:You Don't Need MomentJS by 33degrees on Tuesday July 23, 2019 @01:14PM (#20508366)
date-fns v2 supports timezones with the date-fns-timezone package https://www.npmjs.com/package/date-fns-timezone. Works well for me so far.
Re:You Don't Need MomentJS by ddoolin on Tuesday July 23, 2019 @01:16PM (#20508390)
This 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.
Re:You Don't Need MomentJS by leetbulb on Tuesday July 23, 2019 @01:06PM (#20508288)
Yep, timezone support is the primary reason I use MomentJS