Fix news feed time being off #11

Merged
maia merged 1 commit from diamond/devhack.net:newsfeed-fix-time into main 2025-06-04 02:00:35 -04:00

View file

@ -150,7 +150,7 @@ function createdAtString(createdAt) {
const now = Date.now();
const createdAtDate = Date.parse(createdAt);
const day = Math.floor((createdAtDate - now) / (1000 * 60 * 60 * 24));
const day = Math.round((createdAtDate - now) / (1000 * 60 * 60 * 24));
return timeAgoFormatter.format(day, "day");
}