You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which is rejecting 'America/Fort_Nelson' and the other names however I'm not sure why this these names are being rejected.
Note that CFTimeZoneCopyKnownNames() (used by knownTimeZoneIdentifiers) doesn't seem to validate that names hence why there are timezone that cannot be instantiated.
Probably needs two fixes:
1. Validate the names in CFTimeZoneCopyKnownNames()
2. Determine why ucal_getCanonicalTimeZoneID excludes those names, this could just be due to the ICU version being older on 16.04, which appears to be the case as the issue does not show up on Ubuntu18.04
Environment
Ubuntu 16.04 Swift 4.2 Snapshot 2018-06-21
Additional Detail from JIRA
md5: 97cf690688a2a5cb9c0ffeec6acfa0c9
Issue Description:
The following time zone identifiers which are returned by
when used with
returns nil:
"America/Fort_Nelson",
"America/Punta_Arenas",
"Asia/Famagusta",
"Asia/Atyrau",
"Asia/Yangon",
"Europe/Kirov",
"Europe/Astrakhan",
"Europe/Saratov",
"Europe/Ulyanovsk",
"Asia/Barnaul",
"Asia/Tomsk"
To easily test this you can use the following code snippet
If you run on macOS nothing gets printed but if you run it on Ubuntu 16.04 you get the previous list of identifiers.
You can use https://hub.docker.com/r/guidomb/swift-snapshots/tags/ which I publish and use in my code.
The text was updated successfully, but these errors were encountered: