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
This commit is contained in:
SileNce5k 2021-06-27 18:14:58 +02:00
commit 49e6eaed11
No known key found for this signature in database
GPG key ID: C507260E7F2583AD
6 changed files with 19 additions and 44 deletions

4
util/getCreationDate.js Normal file
View file

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