-
Notifications
You must be signed in to change notification settings - Fork 278
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
Incorrect Unicode space character in return value from Date.prototype.toLocaleTimeString #4068
Comments
I think in this Case the "NARROW NO-BREAK SPACE" (Char 8239) is more likely to be the "correct" space character. If you have trouble with your Snapshot Tests (I had some) be sure to keep your lokal and CI node Version in sync. So there are two Options:
|
Ok who put CharCode Web Browser Chrome does not do this, it uses standard space char Update: I changed my terminal font from |
This seems to have been a deliberate change in See also |
Well this is causing quite a lot of trouble for a lot of people, by causing hydration mismatch in frameworks that hydrate on client side |
This was fixed in Node.js 18.15.0 by nodejs/node@492fc95bdf. |
Details
The space character immediately preceding "AM"/"PM" in the return value is a Unicode "NARROW NO-BREAK SPACE" (8239) character, instead of the correct "SPACE" (32) character.
Affects
Date.prototype.toLocaleTimeString
andDate.prototype.toLocaleString
.Node.js version
v18.13.0
Example code
Operating system
macOS 12.5.1 (21G83)
Scope
Runtime
Module and version
Not applicable.
The text was updated successfully, but these errors were encountered: