mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 16:54:12 +00:00
Use new DateParser.
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user