Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zokhoi committed Sep 29, 2024
1 parent 6114a41 commit 9a0a0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framerail/src/lib/server/load/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 9a0a0da

Please sign in to comment.