Commit Graph
6 Commits
Author SHA1 Message Date
Brent Simmons e255f8638e Update DateParser comments to describe current behavior. 2026-12-03 09:02:04 -08:00
Brent Simmons f07651132a Read numeric offset after GMT or UTC as in GMT-0800 (JavaScript date strings, for instance). 2026-12-03 08:59:56 -08:00
Brent Simmons ec7ea1713f Fix bug where the year could be taken as the day. 2026-12-03 08:55:20 -08:00
Naitik Kumar Rauniyar 46aa0e351e Fix pubDate strings that parsed as January 1970 (#5469)
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.
2026-11-28 18:54:50 +01:00
Brent Simmons 3b9347ce05 Make RSParser depend on RSCore and use a single md5String implementation (in RSCore). Make Swift Testing work with RSCore. 2026-04-24 10:23:34 -07:00
Brent Simmons 75c7d7da0d Organize RSParserTests so structure matches module structure. 2026-04-20 12:00:42 -07:00