diff options
| author | Joe Carstairs <jcarstairs@scottlogic.com> | 2024-07-15 16:14:08 +0100 |
|---|---|---|
| committer | Joe Carstairs <jcarstairs@scottlogic.com> | 2024-07-15 16:14:08 +0100 |
| commit | ea96f40f7c0c535bc4c7d747d347893b78acb6fb (patch) | |
| tree | 662a098c9026fa43bf1ced4d4ca32394d3fd6958 /website/src/pages/blog/rss.xml.ts | |
| parent | dff4a997f86a245c50350038dde0881a00210f6f (diff) | |
Blog posts use Date type pubDate
Diffstat (limited to 'website/src/pages/blog/rss.xml.ts')
| -rw-r--r-- | website/src/pages/blog/rss.xml.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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', |
