-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
NodeJS reports incorrect time zone for Brazil #30211
Comments
Tracking issue for update to ICU 65.1: #29540 |
Time zone data files are updated independently of ICU. You do not need to tie updating time zone data with upgrading ICU, which could have other consequences. To update the existing ICU 64
To test the patched file works... Existing Node v12.13.0 release:
After patching
If it helps, the |
/cc @srl295 |
@apaprocki would you like to make a PR to update additionally, |
I specifically left that part out because Node does not currently build with the external directory enabled. If someone decides on an installation path where Node should look for updated ICU time zone data files, I can include that text as well. (e.g., Also, current ICU (65.1) does not expose the |
I meant `NODE_ICU_DATA` or `--icu-data-dir` - but you’re right, the tzdata specific option may not be enabled by default.
|
@srl295 I filed ICU-20895 and opened the pull request for the environment variable. |
Refs: nodejs#30211 Refs: nodejs#30356
Refs: nodejs#30211 Refs: nodejs#30356
I've backported to 12.x and 10.x. For now I didn't update 8.x. @nodejs/lts thoughts? |
Update the version of the bundled ICU (deps/icu-small) to ICU version 65.2. Fixes: nodejs#30211 Fixes: nodejs#29540
Updates the "Maintaining ICU" document and describes the process to update an existing ICU `.dat` file with updated binary time zone data files corresponding to new IANA `tzdata` releases. Requested in nodejs#30211 by @srl295
Update the version of the bundled ICU (deps/icu-small) to ICU version 65.2. Fixes: nodejs#30211 Fixes: nodejs#29540 Backport-PR-URL: nodejs#31434 PR-URL: nodejs#30356 PR-URL: nodejs#30232
Update the version of the bundled ICU (deps/icu-small) to ICU version 65.2. Fixes: nodejs#30211 Fixes: nodejs#29540 PR-URL: nodejs#30232 Reviewed-By: Steven R Loomis <srloomis@us.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Update the version of the bundled ICU (deps/icu-small) to ICU version 65.2. Fixes: #30211 Fixes: #29540 Backport-PR-URL: #31433 PR-URL: #30232 Reviewed-By: Steven R Loomis <srloomis@us.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
I have the same problem, I need to set the time zone for the America/Campo_Grande node, I already changed the environment variable (TZ) but it still doesn't work ... |
@leonetosoft I had the same problem, and the workaround I'm using is the "set-tz" package. Install it and add in the first lines of your app: const setTZ = require('set-tz'); |
@kirliam @leonetosoft is this on Windows? That seems to be the only place it would make a difference, all set-tz does is set process.env.TZ besides on Windows. Edit: i misread, set-tz may not even do that. Can you show me some code that isn't working and tell me the version and OS? |
I substitute timeZone: "America/Sao_Paulo" by timeZone: "-03:00". work fine to me |
Yes, it's Windows!
…On Thu, May 7, 2020, 11:52 Steven R. Loomis ***@***.***> wrote:
@kirliam <https://github.com/kirliam> @leonetosoft
<https://github.com/leonetosoft> is this on Windows? That seems to be the
only place it would make a difference, all set-tz does is set
process.env.TZ besides on Windows.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#30211 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALGE7EPPQTK22NWPYTV5C3RQLDKLANCNFSM4JIAU5JQ>
.
|
Updates the "Maintaining ICU" document and describes the process to update an existing ICU `.dat` file with updated binary time zone data files corresponding to new IANA `tzdata` releases. Requested in #30211 by @srl295 PR-URL: #30364 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Steven R Loomis <srloomis@us.ibm.com>
Updates the "Maintaining ICU" document and describes the process to update an existing ICU `.dat` file with updated binary time zone data files corresponding to new IANA `tzdata` releases. Requested in #30211 by @srl295 PR-URL: #30364 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Steven R Loomis <srloomis@us.ibm.com>
Node is reporting the wrong time zone for Brazil after its cancelled daylight savings change on November 2.
Reproduction:
Outputs:
I believe this is because node v13.0.1 depends on ICU version 64.2 which includes tzdata 2019a. However, brazil's updated daylight savings was added in tzdata 2019b, which requires a minimum ICU version of 65.1.
The text was updated successfully, but these errors were encountered: