diff --git a/Sources/WultraPowerauthNetworking/WPNHttpRequest.swift b/Sources/WultraPowerauthNetworking/WPNHttpRequest.swift index e6a6956..23af7a5 100644 --- a/Sources/WultraPowerauthNetworking/WPNHttpRequest.swift +++ b/Sources/WultraPowerauthNetworking/WPNHttpRequest.swift @@ -18,7 +18,11 @@ import Foundation import PowerAuth2 import PowerAuthCore -private let jsonEncoder = JSONEncoder() +private let jsonEncoder: JSONEncoder = { + let encoder = JSONEncoder() + encoder.dateEncodingStrategy = .iso8601 + return encoder +}() private let jsonDecoder: JSONDecoder = { let decoder = JSONDecoder() decoder.dateDecodingStrategy = .iso8601