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

[SR-8994] DateFormatter spits out UTC for GMT TimeZone. #3617

Closed
swift-ci opened this issue Oct 14, 2018 · 1 comment
Closed

[SR-8994] DateFormatter spits out UTC for GMT TimeZone. #3617

swift-ci opened this issue Oct 14, 2018 · 1 comment

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-8994
Radar None
Original Reporter Kaiede (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: 7fee8c4f674c561b2a11cf1e5c9fae9a

Issue Description:

This failure was discovered by a unit test that is currently disabled.

```

let f = DateFormatter

f.dateFormat = "z"

f.locale = Locale(identifier: "en_US_POSIX")

assert(TimeZone.current.abbreviation == "GMT")

XCTAssertEqual(f.string(from: Date()), TimeZone.current.abbreviation)

```

The result is that it compares `UTC` to `GMT`.

@spevans
Copy link
Collaborator

spevans commented Feb 5, 2020

This test has been re-enabled in https://bugs.swift.org/browse/SR-8994, it seems to work correctly with the latest version of ICU

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants