Skip to content

Commit 77580c6

Browse files
committed
Fixed compilation error on iOS
1 parent 68530a4 commit 77580c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/Decoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ private extension TLVDecoder.Decoder {
318318
let timeInterval = try unboxDouble(data)
319319
return Date(timeIntervalSince1970: timeInterval / 1000)
320320
case .iso8601:
321-
guard #available(OSX 10.12, *)
321+
guard #available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
322322
else { fatalError("ISO8601DateFormatter is unavailable on this platform.") }
323323
return try unboxDate(data, using: TLVDateFormat.iso8601Formatter)
324324
case let .formatted(formatter):

Sources/Encoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private extension TLVEncoder.Encoder {
221221
case .millisecondsSince1970:
222222
return boxDouble(date.timeIntervalSince1970 * 1000)
223223
case .iso8601:
224-
guard #available(OSX 10.12, *)
224+
guard #available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
225225
else { fatalError("ISO8601DateFormatter is unavailable on this platform.") }
226226
return boxDate(date, using: TLVDateFormat.iso8601Formatter)
227227
case let .formatted(formatter):

0 commit comments

Comments
 (0)