diff --git a/Sources/Pokepay/BankAPI/BankAPIJSONDecoder.swift b/Sources/Pokepay/BankAPI/BankAPIJSONDecoder.swift index 84b6770..82f4189 100644 --- a/Sources/Pokepay/BankAPI/BankAPIJSONDecoder.swift +++ b/Sources/Pokepay/BankAPI/BankAPIJSONDecoder.swift @@ -1,7 +1,8 @@ import Foundation -public class BankAPIJSONDecoder : JSONDecoder { -public let dateFormatter = DateFormatter() +public class BankAPIJSONDecoder: JSONDecoder, @unchecked Sendable { + public let dateFormatter = DateFormatter() + override public init() { super.init() dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'" @@ -9,4 +10,4 @@ public let dateFormatter = DateFormatter() dateFormatter.locale = Locale(identifier: "en_US_POSIX") dateDecodingStrategy = .formatted(dateFormatter) } -} +} \ No newline at end of file