-
Notifications
You must be signed in to change notification settings - Fork 744
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
DateTime.fromFormat fails in some cases when running Node 18.13.0 #1364
Comments
Hello 👋 !
|
The issue is caused by an update to ICU in Node.js. See nodejs/node#46123. Hopefully this can be fixed on Luxon's side as parsing is currently broken because of it. |
Note that the ICU is not inherently tied to the nodejs version. That only applies to official builds. If you (or your distribution) builds an older nodejs against the new ICU, the changes noted here still apply (like having non breaking spaces in certain places). |
This issue has cropped up running on Chrome now as well since updating the browser to version 110. |
Also seeing this on Chrome 110. Running
This returns no matches. In Safari, the regex has a normal blank space character and works well. (We're using v1.28.1) |
True, I'm currently experiencing the same issue with node 18.10.0 and Chrome v110 I have found a temporary solution while waiting for a fix :
|
Describe the bug
I Node 18.13.0 parsing DateTime using the fromFormat method can in some cases fail parsing, where running in previous Node version it would not.
To Reproduce
Actual vs Expected behavior
I would expect the outcome of running the snippet to be the same in 18.12.0 and 18.13.0 and that the parsed DateTime is valid.
Instead in 18.12.0 the DateTime is correctly parsed while in 18.13.0 it is invalid.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: