update time format

This commit is contained in:
Lee 2023-10-23 11:05:51 +01:00
parent 77d6d8b60a
commit 7bfae5a407

View File

@ -18,7 +18,10 @@ export function formatTimeAgo(timestamp: string) {
if (timeDifference === "less than a minute") {
return "just now";
} else {
return `${timeDifference.replace("about", "").replace("almost", "")} ago`;
return `${timeDifference
.replace("about", "")
.replace("almost", "")
.replace("over", "")} ago`;
}
}