Skip to content

Commit cbd5c8b

Browse files
committed
Fix DateFormatter iOS11 formatOptions crash
1 parent 382dfd3 commit cbd5c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Core/Extensions/Codable+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ extension DateFormatter {
8888
}()
8989

9090
public static let iso8601DateFormatter: ISO8601DateFormatter = {
91-
if #available(iOS 11, macOS 10.13, *) {
91+
if #available(iOS 11.2, macOS 10.13, *) {
9292
let formatter = Foundation.ISO8601DateFormatter()
9393
formatter.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
9494
return formatter

0 commit comments

Comments
 (0)