I have node.js installed on an Ubuntu server. When trying to call the following on a Date
object:
date.toLocaleString("zh-CN", { year:"numeric", day:"numeric", month:"long"})
It comes out in US format. The exact call in a browser (Chrome or Edge) would return it as intended, for example:
2017年4月9日
Are all the globalization implementations available in the node.js installation that I installed via apt-get
?
via Old Geezer
No comments:
Post a Comment