mirror of
https://github.com/Xevion/undefined.behavio.rs.git
synced 2025-12-07 07:16:52 -06:00
Adjust date-fns parsing to limit alternate date formats
Not a fix for the GMT+0/UTC date output on Vercel builds
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user