From a1dc9d1bc7a1535c937e38fa87806eea84996604 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Mon, 28 Jun 2021 13:35:06 +0200 Subject: [PATCH] Fix getCreationDate Forgot I had to do user.user.createdAt instead of just user.createdAt. --- util/getCreationDate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/getCreationDate.js b/util/getCreationDate.js index 16cc7ca..2bb9472 100644 --- a/util/getCreationDate.js +++ b/util/getCreationDate.js @@ -1,4 +1,4 @@ module.exports = function(user){ - let date = user.createdAt; + let date = user.user.createdAt; return date.getUTCFullYear() + '-' + ('0' + (date.getUTCMonth()+1)).slice(-2) + '-' + ('0' + date.getUTCDate()).slice(-2)+" "+date.getUTCHours()+":"+date.getUTCMinutes()+":"+date.getUTCSeconds(); } \ No newline at end of file