Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NodeJS not applying date locales properly #8500
In all three of my environments I was able to reproduce this error:
My production server
My primary development machine
My secondary development machine
I can't get nodejs to properly format a datetime string in the machine locale. On all of these machines the locale is set to British English, and when recreated on each machine, I get the same output, so I'll just post it once.
The expected behaviour is as such with the en-GB locale set:
However, when tested in the chrome console, I get the following:
What's going on here? Am I doing something wrong, or is there a bug here?
changed the title from
NodeJS not applying locales properly
NodeJS not applying date locales properly
Sep 12, 2016