-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Description
Version
20.19.0
Platform
Microsoft Windows NT 10.0.26100.0 x64
Subsystem
No response
What steps will reproduce the bug?
- Set to America/Asuncion timezone.
- Access the
Date
class and get wrong times.
Some code to log it out I've been using:
const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
const tzOffset = new Date().getTimezoneOffset() * -1; // Offset is wrong direction so flip it.
const tzOffsetStr = `UTC${tzOffset >= 0 ? '+' : ''}${tzOffset / 60}`;
console.info('[Main] Node version', process.versions.node);
console.info('[Main] In timezone:', tz, tzOffsetStr);
How often does it reproduce? Is there a required condition?
Always when set to America/Asuncion timezone.
What is the expected behavior? Why is that the expected behavior?
America/Asuncion timezone should be UTC-3.
What do you see instead?
In my electron app (electron 34.5.0, using Node 20.19.0):
[2025-04-06 17:30:10.234] [info] [Main] Node version 20.19.0
[2025-04-06 17:30:10.236] [info] [Main] In timezone: America/Asuncion UTC-4
Additional information
Looks like this was addressed by: #56876
Possible (probable?) I'm doing something stupid but seems like it may not have taken effect and there is a problem with the timezone data.
Metadata
Metadata
Assignees
Labels
No labels