Bug 218542 - Incorrect timezone returned for Buenos Aires
Summary: Incorrect timezone returned for Buenos Aires
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Safari 14
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 218829
  Show dependency treegraph
 
Reported: 2020-11-03 16:14 PST by Mark Wade
Modified: 2021-02-01 02:20 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wade 2020-11-03 16:14:21 PST
1. Set OS timezone to Buenos Aires
2. Open Javascript console and run:

Intl.DateTimeFormat().resolvedOptions().timeZone

Expected result: "America/Argentina/Buenos_Aires"
Actual result: "America/Buenos_Aires"

See https://www.iana.org/time-zones for latest timezones. America/Buenos_Aires is obsolete and not in the latest version, America/Argentina/Buenos_Aires is correct. Issue possibly applies to other timezones in Argentina.

Repeating the same steps above in Firefox gives the expected result: "America/Argentina/Buenos_Aires".
Comment 1 Alexey Proskuryakov 2020-11-03 16:49:25 PST
Presumably this will fix itself once macOS and iOS have an updated version of ICU?
Comment 2 Yusuke Suzuki 2020-11-03 20:40:49 PST
Unfortunately, as of now, I think the latest ICU does not handle it correctly.
This is a bug of ICU's TimeZone canonicalization.
V8 shows the same behavior, because V8 is doing similar thing to JSC, and both shows the wrong result because ICU does not canonicalize it correctly.
Comment 3 Radar WebKit Bug Importer 2020-11-04 10:42:20 PST
<rdar://problem/71042560>