From 494518cea57abc19d2fa5fa3b171f172b97968c3 Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 28 Nov 2023 01:43:57 -0600 Subject: [PATCH] Adjust date-fns parsing to limit alternate date formats Not a fix for the GMT+0/UTC date output on Vercel builds --- src/content/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/config.ts b/src/content/config.ts index 0503cbe..0797b46 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -8,7 +8,7 @@ const blogCollection = defineCollection({ description: z.string(), pubDate: z.string().transform((date) => z.date().parse( - parse(date, 'yyyy-MM-dd HH:mm:ss XXXX', new Date()) + parse(date, 'yyyy-MM-dd HH:mm:ss XX', new Date()) ) ), tags: z.array(z.string()),