mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 03:08:43 +00:00
parsePubDate read dates in RFC 822 order (day, month, year). Feeds that
put the month first, such as "Nov 25, 2026" or "Fri, Nov 27 2026 02:07:36 PM",
found no month after the day and no year, so they fell back to January 1970.
New articles from those feeds were dated 1970 and marked read on arrival.
- Parse month-first dates when a month name precedes the day and the day
is followed by the year.
- Apply AM/PM to the hour, and read a numeric offset attached to the time
("00:00:00-0800").
- Return nil instead of a 1970 date when the month or year is missing, so
the existing dateArrived fallback is used.
Written with LLM assistance; reviewed and tested by me.