From ea96f40f7c0c535bc4c7d747d347893b78acb6fb Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Mon, 15 Jul 2024 16:14:08 +0100 Subject: Blog posts use Date type pubDate --- website/src/pages/blog/rss.xml.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'website/src/pages/blog/rss.xml.ts') diff --git a/website/src/pages/blog/rss.xml.ts b/website/src/pages/blog/rss.xml.ts index 9e65a04..afd0640 100644 --- a/website/src/pages/blog/rss.xml.ts +++ b/website/src/pages/blog/rss.xml.ts @@ -26,7 +26,7 @@ export async function GET(context: APIContext) { link: `/blog/${post.slug}`, title: post.data.title, content: mdParser.render(post.body), - pubDate: new Date(`${post.data.pubDate.year}-${post.data.pubDate.month}-${post.data.pubDate.day}`), + pubDate: post.data.pubDate, description: post.data.description, author: 'Joe Carstairs', -- cgit v1.2.3