diff --git a/Sources/Date+Extension.swift b/Sources/Date+Extension.swift index 53177d6..d24713c 100644 --- a/Sources/Date+Extension.swift +++ b/Sources/Date+Extension.swift @@ -20,12 +20,12 @@ public extension String { func rfc3339date() -> Date? { - let date = rfc3339DateFormater.date(from: self) + let date = rfc3339DateFormatter.date(from: self) return date } } -fileprivate var rfc3339DateFormater: ISO8601DateFormatter = { +fileprivate var rfc3339DateFormatter: ISO8601DateFormatter = { let formatter = ISO8601DateFormatter() formatter.formatOptions = .withInternetDateTime formatter.timeZone = TimeZone(abbreviation: "UTC")