Skip to content

Commit c4bde00

Browse files
authored
Prevent CalendarTests.datesMatching_simpleExample() from using the current TimeZone (#1573)
1 parent a526fba commit c4bde00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/FoundationInternationalizationTests/CalendarTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,8 @@ private struct CalendarTests {
10031003
}
10041004

10051005
@Test func datesMatching_simpleExample() {
1006-
let cal = Calendar(identifier: .gregorian)
1006+
var cal = Calendar(identifier: .gregorian)
1007+
cal.timeZone = .gmt
10071008
// August 22, 2022 at 3:02:38 PM PDT
10081009
let date = Date(timeIntervalSinceReferenceDate: 682898558.712307)
10091010
let next3Minutes = [

0 commit comments

Comments
 (0)