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