-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dependency on Moment library in exchange for date-fns-tz #8
base: master
Are you sure you want to change the base?
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.