Skip to content

Commit 2ccf9d1

Browse files
authored
Return the ICU version string on all platforms.
1 parent f8e58b1 commit 2ccf9d1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Foundation/NSTimeZone.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,7 @@ open class NSTimeZone : NSObject, NSCopying, NSSecureCoding, NSCoding {
216216
}
217217

218218
open class var timeZoneDataVersion: String {
219-
#if os(Windows)
220-
return "" // We do not source timezone data from ICU. The empty string is what Darwin would return if ICU isn't able to give a time zone data version.
221-
#else
222-
return __CFTimeZoneCopyDataVersionString()._swiftObject
223-
#endif
219+
return __CFTimeZoneCopyDataVersionString()._swiftObject
224220
}
225221

226222
open var secondsFromGMT: Int {

0 commit comments

Comments
 (0)