From 20536b0562a3a69b3e376cb6fcb32a819a300551 Mon Sep 17 00:00:00 2001 From: satnaing Date: Sat, 30 Dec 2023 10:21:52 +0630 Subject: [PATCH] fix: update rss pubDate to prioritize modDatetime if exists --- src/pages/rss.xml.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/rss.xml.ts b/src/pages/rss.xml.ts index 820c0cc..94afc94 100644 --- a/src/pages/rss.xml.ts +++ b/src/pages/rss.xml.ts @@ -14,7 +14,7 @@ export async function GET() { link: `posts/${slug}`, title: data.title, description: data.description, - pubDate: new Date(data.pubDatetime), + pubDate: new Date(data.modDatetime ?? data.pubDatetime), })), }); }