Use new DateParser.

This commit is contained in:
Brent Simmons committed 2026-04-19 09:00:51 -07:00
1 parent c7d42fdd3c
commit 160ef5bcf3
3 files changed
+3 -3

No files matched your search

@@ -28,7 +28,7 @@ final class FeedbinEntry: Decodable, Sendable {
// and letting the one date fail when parsed.
var parsedDatePublished: Date? {
if let datePublished {
return RSDateWithString(datePublished)
return DateParser.date(from: datePublished)
}
return nil
}
@@ -221,7 +221,7 @@ private extension JSONFeedParser {
guard let dateString = dateString, !dateString.isEmpty else {
return nil
}
return RSDateWithString(dateString)
return DateParser.date(from: dateString)
}
static func parseAttachments(_ itemDictionary: JSONDictionary) -> Set<ParsedAttachment>? {
@@ -88,7 +88,7 @@ private extension RSSInJSONParser {
var datePublished: Date?
if let datePublishedString = itemDictionary["pubDate"] as? String {
datePublished = RSDateWithString(datePublishedString)
datePublished = DateParser.date(from: datePublishedString)
}
let authors = parseAuthors(itemDictionary)