diff --git a/public/css/style.scss b/public/css/style.scss
index fd8c342f3..5959ee94a 100644
--- a/public/css/style.scss
+++ b/public/css/style.scss
@@ -2497,6 +2497,11 @@ key {
text-align: center;
}
+ &.createdDate {
+ text-align: center;
+ color: var(--sub-color);
+ }
+
&.history {
.loadMoreButton {
background: rgba(0, 0, 0, 0.1);
diff --git a/public/index.html b/public/index.html
index 819ffb838..39cd91a0e 100644
--- a/public/index.html
+++ b/public/index.html
@@ -2851,6 +2851,7 @@
-
+ asd
personal bests
diff --git a/public/js/account.js b/public/js/account.js
index 1877bfb16..de66e4e53 100644
--- a/public/js/account.js
+++ b/public/js/account.js
@@ -268,6 +268,17 @@ firebase.auth().onAuthStateChanged(function (user) {
showFavouriteThemesAtTheTop();
+ let text = "Account created on " + user.metadata.creationTime;
+
+ const date1 = new Date(text);
+ const date2 = new Date();
+ const diffTime = Math.abs(date2 - date1);
+ const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
+
+ text += ` (${diffDays} days ago)`;
+
+ $(".pageAccount .group.createdDate").text(text);
+
if (verifyUserWhenLoggedIn !== null) {
showNotification("Verifying", 1000);
verifyUserWhenLoggedIn.uid = user.uid;