From 31b823734670cc83e9be6aeec889f29f975a6e25 Mon Sep 17 00:00:00 2001 From: Taylor Robinson Date: Sun, 3 Jan 2021 19:04:04 +0000 Subject: [PATCH] fix 1 days --- src/js/account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/account.js b/src/js/account.js index 5d36dc4f1..59bfc0142 100644 --- a/src/js/account.js +++ b/src/js/account.js @@ -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);