update time format
This commit is contained in:
parent
77d6d8b60a
commit
7bfae5a407
@ -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`;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user