We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3275b30 commit 87063edCopy full SHA for 87063ed
TestFoundation/TestNSCalendar.swift
@@ -92,7 +92,7 @@ class TestNSCalendar: XCTestCase {
92
}
93
94
func test_addingDates() {
95
- let calendar = Calendar.current
+ let calendar = Calendar(identifier: .gregorian)
96
let thisDay = calendar.date(from: DateComponents(year: 2016, month: 10, day: 4))!
97
let diffComponents = DateComponents(day: 1)
98
let dayAfter = calendar.date(byAdding: diffComponents, to: thisDay)
0 commit comments