discord_bot/util/getCreationDate.js
SileNce5k 49e6eaed11
Rewrite createdate and joindate gets
Update botinfo to work with new getCreationDate
Update userinfo to work with new getCreationDate
Update userinfo to work with new getJoinDate
2021-06-27 19:59:02 +02:00

4 lines
No EOL
222 B
JavaScript

module.exports = function(user){
let date = user.createdAt;
return date.getUTCFullYear().toString()+"-"+date.getUTCMonth()+"-"+date.getUTCDate()+" "+date.getUTCHours()+":"+date.getUTCMinutes()+":"+date.getUTCSeconds();
}