update time format

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

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