From ed0d1f8f6ea00f3993e1ec3eab76bd859721f1f4 Mon Sep 17 00:00:00 2001 From: Randolph Lee Date: Thu, 20 Oct 2016 01:30:20 -0700 Subject: [PATCH] updated ISO8601DateFormatter #available for iOS --- Sources/JSON.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/JSON.swift b/Sources/JSON.swift index d69d07a..8361481 100644 --- a/Sources/JSON.swift +++ b/Sources/JSON.swift @@ -73,7 +73,7 @@ public func decode(_ dictionary: JSONDictionary, key: String) throws -> Date { throw JSONDeserializationError.missingAttribute(key: key) } - if #available(iOSApplicationExtension 10.0, OSXApplicationExtension 10.12, watchOSApplicationExtension 3.0, tvOSApplicationExtension 10.0, *) { + if #available(iOSApplicationExtension 10.0, OSXApplicationExtension 10.12, watchOSApplicationExtension 3.0, tvOSApplicationExtension 10.0, iOS 10.0, *) { if let string = value as? String { guard let date = ISO8601DateFormatter().date(from: string) else { throw JSONDeserializationError.invalidAttribute(key: key)