Skip to content

Commit e826252

Browse files
committed
Disable test_expectedTimeZone Case 1
This is hitting an issue on GMT time zones where it shows up as UTC when formatted.
1 parent 5b1bfc9 commit e826252

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

TestFoundation/TestDateFormatter.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ class TestDateFormatter: XCTestCase {
378378
}
379379

380380
func test_expectedTimeZone() {
381-
let gmt = TimeZone(abbreviation: DEFAULT_TIMEZONE)
382381
let newYork = TimeZone(identifier: "America/New_York")!
383382
let losAngeles = TimeZone(identifier: "America/Los_Angeles")!
384383

@@ -397,8 +396,10 @@ class TestDateFormatter: XCTestCase {
397396
// it would benefit from a more specific test that fails when
398397
// TimeZone.current is GMT as well.
399398
// (ex. TestTimeZone.test_systemTimeZoneName)
400-
f.timeZone = TimeZone.current
401-
XCTAssertEqual(f.string(from: now), TimeZone.current.abbreviation())
399+
400+
// Disabled because of: https://bugs.swift.org/browse/SR-8994
401+
// f.timeZone = TimeZone.current
402+
// XCTAssertEqual(f.string(from: now), TimeZone.current.abbreviation())
402403

403404
// Case 2: New York
404405
f.timeZone = newYork

0 commit comments

Comments
 (0)