From bfe4c8fc3640224867dbd0ca69dbf199c6337213 Mon Sep 17 00:00:00 2001 From: Jacob Shuman <44483276+jacob-shuman@users.noreply.github.com> Date: Tue, 3 Sep 2024 11:01:41 -0400 Subject: [PATCH] fix: atom and json feeds --- src/routes/articles/add/+server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/articles/add/+server.ts b/src/routes/articles/add/+server.ts index 9791af2..4a3c4dc 100644 --- a/src/routes/articles/add/+server.ts +++ b/src/routes/articles/add/+server.ts @@ -27,7 +27,7 @@ export const POST: RequestHandler = async ({ request }) => { description: article.description?.slice(0, 200) ?? article.content?.slice(0, 200) + '...', content: article.content, author: article.author, - date: article.published ?? new Date().toString() + date: article.published || new Date().toDateString() }); return new Response(JSON.stringify({ id: lastInsertRowid, url }), {