Add convertDateToISOString.js
Also make getCreationDate.js and getJoinDate.js use this function
This commit is contained in:
parent
8a47c78b44
commit
a1986c12a2
3 changed files with 7 additions and 2 deletions
3
util/convertDateToISOString.js
Normal file
3
util/convertDateToISOString.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
module.exports = function (date){
|
||||
return date.getUTCFullYear() + '-' + ('0' + (date.getUTCMonth()+1)).slice(-2) + '-' + ('0' + date.getUTCDate()).slice(-2)+" "+date.getUTCHours()+":"+date.getUTCMinutes()+":"+date.getUTCSeconds();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue