We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a78d20e commit 8fd7e19Copy full SHA for 8fd7e19
Sources/EndpointBuilderURLSession/EndpointBuilderURLSession.swift
@@ -30,11 +30,19 @@ extension EndpointBuilderURLSession {
30
}
31
32
public var encoder: @Sendable () -> JSONEncoder {
33
- { JSONEncoder() }
+ {
34
+ let encoder = JSONEncoder()
35
+ encoder.dateEncodingStrategy = .iso8601
36
+ return encoder
37
+ }
38
39
40
public var decoder: @Sendable () -> JSONDecoder {
- { JSONDecoder() }
41
42
+ let decoder = JSONDecoder()
43
+ decoder.dateDecodingStrategy = .iso8601
44
+ return decoder
45
46
47
48
0 commit comments