Skip to content
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

Intl.DateTimeFormat "short" returns month with a period for "pt-pt" and "pt-br" #31374

Closed
rodolfo3 opened this issue Jan 15, 2020 · 1 comment
Labels
i18n-api Issues and PRs related to the i18n implementation.

Comments

@rodolfo3
Copy link

It is also happening on MacOS.

I'm updating the nodejs and get some different behavior on Intl.DateTimeFormat for pt-br and pt-pt.

On 13.3.0, I get jan as result.
On 13.4.0 and later, I get jan. (with an period at the end).

To test it, I'm using this code:

node --version
node -e "console.log(new Intl.DateTimeFormat('pt-br', { month: 'short' }).format(new Date()));"

And get these results:

Now using node v13.6.0 (npm v6.13.4)
v13.6.0
jan.


Now using node v13.5.0 (npm v6.13.4)
v13.5.0
jan.


Now using node v13.4.0 (npm v6.13.4)
v13.4.0
jan.


Now using node v13.3.0 (npm v6.13.1)
v13.3.0
jan


Now using node v13.2.0 (npm v6.13.1)
v13.2.0
jan


Now using node v13.1.0 (npm v6.12.1)
v13.1.0
jan


Now using node v13.0.1 (npm v6.12.0)
v13.0.1
jan

I'm changing the versions using nvm:

$ nvm --version
0.34.0
@Hakerh400
Copy link
Contributor

Bisected to 0cb7720. It is an ICU update, so probably the new behavior is correct.

@targos targos added the i18n-api Issues and PRs related to the i18n implementation. label Dec 26, 2020
@targos targos closed this as completed Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n-api Issues and PRs related to the i18n implementation.
Projects
None yet
Development

No branches or pull requests

3 participants