mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 13:01:10 +08:00
fix 1 days
This commit is contained in:
parent
876bdf7ac2
commit
31b8237346
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ firebase.auth().onAuthStateChanged(function (user) {
|
|||
const diffTime = Math.abs(date2 - date1);
|
||||
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
|
||||
|
||||
text += ` (${diffDays} days ago)`;
|
||||
text += ` (${diffDays} day${diffDays != 1 ? "s" : ""} ago)`;
|
||||
|
||||
$(".pageAccount .group.createdDate").text(text);
|
||||
|
||||
|
|
Loading…
Reference in a new issue