4 ms·
A significant issue though is that timezones change. For example the EU is ditching daylight savings time in 2021[1]. So actually there are many libraries and
by sammorrowdrums 6y ago
A significant issue though is that timezones change. For example the EU is ditching daylight savings time in 2021[1].
So actually there are many libraries and tools that could be done and just work forever, timezone stuff is much more dynamic than I'd ever realised.
FWIW I loved moment and made the move this year to date-fns[2] as I trusted browser availablity of the prerequisites enough to finally switch, and I do like working with it, but its focus on lightweight makes it less "magic" than Moment.
- [1] https://www.insider.com/europe-to-get-rid-of-daylight-saving-time-2019-3 https://www.insider.com/europe-to-get-rid-of-daylight-saving...
- [2] https://date-fns.org/ https://date-fns.org/
(edit formatting)
- TJSomething 6y agoThe article specifically states that they're going to keep Moment-Timezone up to date. Which is important, because the timezone database has changed approximately 4 times a year for the last 5 years (https://mm.icann.org/pipermail/tz-announce/ https://mm.icann.org/pipermail/tz-announce/).
- sammorrowdrums 6y agoLet's just hope no random country decides to use 100 minutes an hour or something one day.
- marci 6y agoLike France and China did, once upon a time. https://en.wikipedia.org/wiki/French_Republican_calendar#Decimal_time https://en.wikipedia.org/wiki/French_Republican_calendar#Dec... https://en.wikipedia.org/wiki/Traditional_Chinese_timekeeping#One-hundredth_of_a_day:_K%C3%A8 https://en.wikipedia.org/wiki/Traditional_Chinese_timekeepin...
- jayflux 6y ago> So actually there are many libraries and tools that could be done and just work forever, timezone stuff is much more dynamic than I'd ever realised. I think the parent’s point was that things like security updates still need to happen. So there may be scrutiny if you come across a package and there hasn’t been a change for a couple of years, in the JS ecosystem it would raise red flags for many. Maybe not so much in the Go ecosystem.
- sammorrowdrums 6y agoYeah, active development is always a good sign. These days at least NPM shows popularity, quality and maintenance data in search, and flags up known vulnerabilities so you can at least see if a project is rotten, or just no longer maintained (which may be ok in some circumstances).
- breakingcups 6y agoWell, they do say: "We will release data updates for Moment-Timezone following IANA time zone database releases."
- fyfy18 6y agoEU ditching daylight savings time is unlikely to happen next year, as the legislation is only at draft stage and hasn't been finalised yet. The original proposal in 2018 called for it to end in 2019, but various industries pushed back saying that a transition would need more time. Because of Brexit (Ireland wants to use the same timezone as Northern Ireland, i.e. keep daylight savings time) and COVID-19 it's been delayed.