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

Node assuming Summer Time that no longer exists (Brasilia) #30332

Closed
igorcferreira opened this issue Nov 8, 2019 · 2 comments
Closed

Node assuming Summer Time that no longer exists (Brasilia) #30332

igorcferreira opened this issue Nov 8, 2019 · 2 comments
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. i18n-api Issues and PRs related to the i18n implementation.

Comments

@igorcferreira
Copy link

  • Version: v12.13.0
  • Platform: Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15 PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64 x86_64

This is the first year since Brazil abolished summer time. But, Node still assumes that the country is on summer time. This affects calls like toTimeString, and others time formatters.

Example:

$ node
Welcome to Node.js v12.13.0.
Type ".help" for more information.
> (new Date).toUTCString()
'Fri, 08 Nov 2019 15:35:53 GMT'
> (new Date).toTimeString()
'13:36:00 GMT-0200 (Brasilia Summer Time)'
> .exit
$ date
Fri Nov  8 12:36:19 -03 2019

The $ date shows what the system (macOS 10.15.1 [19B88]) shows. The correct timezone for Brazil (at the moment of this report) is GMT-03:00, not GMT-02:00 as Node.js tries to use.

@richardlau
Copy link
Member

Duplicate of #30211. Should be addressed by #30232.

@richardlau richardlau added duplicate Issues and PRs that are duplicates of other issues or PRs. i18n-api Issues and PRs related to the i18n implementation. labels Nov 8, 2019
@igorcferreira
Copy link
Author

@richardlau Sorry for the duplicated issue. I failed in my search for an already open issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. i18n-api Issues and PRs related to the i18n implementation.
Projects
None yet
Development

No branches or pull requests

2 participants