-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Change in behavior of Date.toLocaleDateString() in version 4.2.3 #4159
Comments
/cc @srl295, I guess. |
I have the same result as @evanlucas on Fedora 23 |
If I had to venture a guess, it would be that the NodeSource packages weren't built with ICU support until v4.2.3. It shouldn't affect the binaries from https://nodejs.org/dist/v4.2.2/, those have been built with small-icu for some time now. |
Results from running 4.2.2: undefined Looks like something changed with ICU in the NodeSource build of nodejs packages from version 4.2.2 to 4.2.3. |
Probably related to this issue: nodesource/distributions#168 Looking at the output of |
I don't think that there is anything actionable here, in both cases the method behaves as it should, given the build configuration. Also, this is not related to builds on nodejs.org. Can we close this? |
Looks like a change in NodeSource's compilation process, not a change in Node proper. Closing. Thanks! |
Yes, sorry, it's to do with a change that was made in the compilation process. We have been building without ICU until now and just turned it on. Frankly it was an oversight and we were keen to rectify it as soon as we became aware of it. The binaries you get from the NodeSource Linux distributions should now be equivalent to the ones available for download at nodejs.com except they are compiled with the appropriate toolchain for each distribution. /cc @chrislea |
I upgraded from version 4.2.2 to version 4.2.3 and noticed a change in the behavior of toLocaleDateString.
This code returns a different string between the two versions:
4.2.2: Friday, September 05, 2014
4.2.3: 9/5/2014
I don't see any notes in the changelog that would suggest this behavior would change.
I'm installing nodejs on Ubuntu Precise using the packages from NodeSource.
The text was updated successfully, but these errors were encountered: