Remove dependency on Moment library in exchange for date-fns-tz#8
Remove dependency on Moment library in exchange for date-fns-tz#8mcshaz wants to merge 5 commits intocommenthol:masterfrom
Conversation
|
Hi @mcshaz, |
Tests added to describe the problem with the date-fns-tz library when the zoned time is set in a daylight savings jump forward, which therefore doesn't exist. A temporary workaround is added but only for Iran (the only country which changed to DST at their local midnight).
|
Thanks for the questions @commenthol. In answer: I have set up a workspace ( My older version of NodeJS initially struggled with tests of Fiji, as it recently (and with little rollout period) changed its daylight savings rules, but this was fixed with a Node upgrade. The reason for picking note there is a problem with As per the comments in the pull request code- the Temporal proposal is stage 3 and will likely replace all of this eventually. |
|
@commenthol - I had a couple of thoughts overnight:
Edit
The other option would be to have a subdirectory such as Thoughs? |
|
I made another branch to explore changes. in this branch there are a few slightly opinionated changes (e.g. I changed to typescript), so I am not putting a PR in as yet, but:
|
As per the pull request in date-holidays-parser this is in order to reduce bundle size and also keep dependency to an actively maintained library, with the added bonus of faster processing of dates.