Fix date display by backing timezone off by another hour.
This isn't entirely accurate but it works well enough.
This commit is contained in:
parent
5d05d4011e
commit
7f3b921c5c
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ const notes = defineCollection({
|
||||||
schema: z.object({
|
schema: z.object({
|
||||||
title: z.string(),
|
title: z.string(),
|
||||||
date: z.string().transform((s) => {
|
date: z.string().transform((s) => {
|
||||||
return new Date(`${s}T00:00:00-0600`);
|
return new Date(`${s}T00:00:00-0700`);
|
||||||
}),
|
}),
|
||||||
meta_description: z.string().optional(),
|
meta_description: z.string().optional(),
|
||||||
sub_heading: z.string().optional(),
|
sub_heading: z.string().optional(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue