File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public enum SES {
49
49
public struct CommonHeaders : Decodable {
50
50
public let bcc : [ String ] ?
51
51
public let cc : [ String ] ?
52
- @DateTimeCoding public var date : Date
52
+ @RFC5322DateTimeCoding public var date : Date
53
53
public let from : [ String ]
54
54
public let messageId : String
55
55
public let returnPath : String ?
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public struct ISO8601WithFractionalSecondsCoding: Decodable {
71
71
}
72
72
73
73
@propertyWrapper
74
- public struct DateTimeCoding : Decodable {
74
+ public struct RFC5322DateTimeCoding : Decodable {
75
75
public let wrappedValue : Date
76
76
77
77
public init ( wrappedValue: Date ) {
@@ -83,7 +83,7 @@ public struct DateTimeCoding: Decodable {
83
83
let dateString = try container. decode ( String . self)
84
84
guard let date = Self . dateFormatter. date ( from: dateString) else {
85
85
throw DecodingError . dataCorruptedError ( in: container, debugDescription:
86
- " Expected date to be in date-time format with fractional seconds, but ` \( dateString) ` does not forfill format " )
86
+ " Expected date to be in RFC5322 date-time format with fractional seconds, but ` \( dateString) ` does not forfill format " )
87
87
}
88
88
self . wrappedValue = date
89
89
}
You can’t perform that action at this time.
0 commit comments