Fix getCreationDate

Forgot I had to do user.user.createdAt instead of just user.createdAt.
This commit is contained in:
SileNce5k 2021-06-28 13:35:06 +02:00
parent 8b92667315
commit a1dc9d1bc7
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -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();
}