Skip to content

Fix RSS feed publication dates - #3704

Merged
sydseter merged 1 commit into
OWASP:masterfrom
prajakta128:fix/rss-pubdate
Nov 1, 2026
Merged

sydseter merged 1 commit into
OWASP:masterfrom
prajakta128:fix/rss-pubdate

Conversation

@prajakta128

Copy link
Copy Markdown
Contributor

PR Description

Fixed an issue where RSS feed posts were showing the wrong publication dates.

The problem was caused by incorrect slice() ranges in generateDate, which made the month and day invalid. The month was also being used incorrectly when creating the date.

Updated the date parsing to correctly read the year, month, and day from the YYYYMMDD format and generate the correct UTC date.

Added a regression test using a mock post dated 20231201 to verify that the RSS feed returns:

<pubDate>Fri, 01 Dec 2023 00:00:00 GMT</pubDate>

Tests passed:

  • pnpm test --run — 277 tests passed across 27 files
  • pnpm lint — passed

@sydseter
sydseter merged commit 8b19ecc into OWASP:master Nov 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants