diff --git a/Amplify/Categories/DataStore/Model/Temporal/TimeZone+Extension.swift b/Amplify/Categories/DataStore/Model/Temporal/TimeZone+Extension.swift index c372427b53..31fee988f7 100644 --- a/Amplify/Categories/DataStore/Model/Temporal/TimeZone+Extension.swift +++ b/Amplify/Categories/DataStore/Model/Temporal/TimeZone+Extension.swift @@ -13,88 +13,96 @@ extension TimeZone { private static let iso8601TimeZoneHHMMRegex = try? NSRegularExpression(pattern: "^[+-]\\d{2}\\d{2}$") private static let iso8601TimeZoneHHRegex = try? NSRegularExpression(pattern: "^[+-]\\d{2}$") - /// https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators - @usableFromInline - internal init?(iso8601DateString: String) { - func hasMatch(regex: NSRegularExpression?, str: String) -> Bool { - return regex.flatMap { - $0.firstMatch(in: str, range: NSRange(location: 0, length: str.count)) - } != nil - } - //