-
Notifications
You must be signed in to change notification settings - Fork 732
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
Luxon "toLocaleString" uses an unusal space unicode when "setZone" flag is set #1619
Labels
Comments
Several points here:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When converting a time to simple time "TIME_SIMPLE" the returned string have an unusual space. such that if you happen to want to reuse it and create a new DateTime object it will not be accepted. this only happens when setzone flag is set
{ setZone: true }
To Reproduce
Actual vs Expected behavior
Actual:
Returns the string "Invalid DateTime"
Expected :
Should parse the time normally and output 10:30
Desktop (please complete the following information):
Additional info:
Luxon inserted space: \u202f
Normal space: \u0020
The text was updated successfully, but these errors were encountered: