You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Theoretically we would disallow or require the presence of a `:` here. However, the original implementation of this style with ICU accidentally allowed either the presence or absence of the `:` to be parsed regardless of the setting. We preserve that behavior now.
614
+
// The parser is tolerant to the presence or absence of the `:` in the time zone, as well as the presence or absence of minutes.
Copy file name to clipboardExpand all lines: Sources/FoundationEssentials/JSON/JSONDecoder.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -357,7 +357,7 @@ open class JSONDecoder {
357
357
openfunc decode<T, C>(_ type:T.Type, from data:Data, configuration:C.Type)throws->Twhere T :DecodableWithConfiguration, C :DecodingConfigurationProviding, T.DecodingConfiguration ==C.DecodingConfiguration{
Copy file name to clipboardExpand all lines: Tests/FoundationEssentialsTests/Formatting/ISO8601FormatStyleParsingTests.swift
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -222,6 +222,7 @@ final class ISO8601FormatStyleParsingTests: XCTestCase {
222
222
("2020-03-05T12:00:00UTC",Date.ISO8601FormatStyle().year().month().day().time(includingFractionalSeconds:false).timeSeparator(.colon).timeZone(separator:.colon)), // allow UTC
("2020-03-05T13:00:00UTC+1:00",Date.ISO8601FormatStyle().year().month().day().time(includingFractionalSeconds:false).timeSeparator(.colon).timeZone(separator:.colon)), // allow UTC offsets
0 commit comments