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:
parent
0d5502bc92
commit
49e6eaed11
6 changed files with 19 additions and 44 deletions
4
util/getCreationDate.js
Normal file
4
util/getCreationDate.js
Normal 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();
|
||||
}
|
||||
Loading…
Reference in a new issue