From 9a0a0daea5ace0cbdddef3e1b95324c1c3db768a Mon Sep 17 00:00:00 2001 From: Zokhoi <20432565+Zokhoi@users.noreply.github.com> Date: Sun, 29 Sep 2024 21:55:41 +0800 Subject: [PATCH] Fix --- framerail/src/lib/server/load/page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framerail/src/lib/server/load/page.ts b/framerail/src/lib/server/load/page.ts index 82bd74a836..c099818655 100644 --- a/framerail/src/lib/server/load/page.ts +++ b/framerail/src/lib/server/load/page.ts @@ -80,7 +80,7 @@ export async function loadPage( if (errorStatus === null) { // Calculate difference of days since latest page edit - let updatedAt = parseDateEpoch(viewData.page.updated_at) + let updatedAt = parseDateEpoch(viewData.page.updated_at ?? viewData.page.created_at) let daysDiff = Math.floor((Date.now() - updatedAt) / 1000 / 86400) translateKeys = {