From 0b5bee91bc1c15ec14149a3778eeb264adef5169 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 1 Mar 2020 00:59:19 +0100 Subject: [PATCH] Change the published date to be noon on the last day of the month. --- source/scripts/feeds.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/scripts/feeds.ts b/source/scripts/feeds.ts index 64f4ab7..47de69e 100644 --- a/source/scripts/feeds.ts +++ b/source/scripts/feeds.ts @@ -56,7 +56,7 @@ export async function generateFeeds(allPosts: PostList[]): Promise { months[post.month] }.html`; - const date = new Date(year.year, post.month, 0, 23, 59, 59); + const date = new Date(year.year, post.month, 0, 12, 0, 0); const html: string = await fsp.readFile( join(__dirname, `../../public/${year.year}/${months[post.month]}.html`),