Convert spaces to tabs
This commit is contained in:
parent
4576eec78a
commit
db04c07c60
17 changed files with 327 additions and 327 deletions
|
@ -1,34 +1,34 @@
|
|||
module.exports = function (user) {
|
||||
let creationMonth, creationDate, creationHours, creationMinutes, creationSeconds;
|
||||
let creationMonth, creationDate, creationHours, creationMinutes, creationSeconds;
|
||||
|
||||
if (user.createdAt.getUTCMonth().toString().length === 1)
|
||||
creationMonth = "0" + (1+user.createdAt.getUTCMonth())
|
||||
else
|
||||
creationMonth = (1+user.createdAt.getUTCMonth())
|
||||
if (user.createdAt.getUTCMonth().toString().length === 1)
|
||||
creationMonth = "0" + (1+user.createdAt.getUTCMonth())
|
||||
else
|
||||
creationMonth = (1+user.createdAt.getUTCMonth())
|
||||
|
||||
if (user.createdAt.getUTCDate().toString().length === 1)
|
||||
creationDate = "0" + user.createdAt.getUTCDate()
|
||||
else
|
||||
creationDate = user.createdAt.getUTCDate()
|
||||
if (user.createdAt.getUTCDate().toString().length === 1)
|
||||
creationDate = "0" + user.createdAt.getUTCDate()
|
||||
else
|
||||
creationDate = user.createdAt.getUTCDate()
|
||||
|
||||
if (user.createdAt.getUTCHours().toString().length === 1)
|
||||
creationHours = "0" + user.createdAt.getUTCHours()
|
||||
else
|
||||
creationHours = user.createdAt.getUTCHours()
|
||||
if (user.createdAt.getUTCHours().toString().length === 1)
|
||||
creationHours = "0" + user.createdAt.getUTCHours()
|
||||
else
|
||||
creationHours = user.createdAt.getUTCHours()
|
||||
|
||||
|
||||
if (user.createdAt.getUTCMinutes().toString().length === 1)
|
||||
creationMinutes = "0" + user.createdAt.getUTCMinutes()
|
||||
else
|
||||
creationMinutes = user.createdAt.getUTCMinutes()
|
||||
if (user.createdAt.getUTCMinutes().toString().length === 1)
|
||||
creationMinutes = "0" + user.createdAt.getUTCMinutes()
|
||||
else
|
||||
creationMinutes = user.createdAt.getUTCMinutes()
|
||||
|
||||
|
||||
if (user.createdAt.getUTCSeconds().toString().length === 1)
|
||||
creationSeconds = "0" + user.createdAt.getUTCSeconds()
|
||||
else
|
||||
creationSeconds = user.createdAt.getUTCSeconds()
|
||||
if (user.createdAt.getUTCSeconds().toString().length === 1)
|
||||
creationSeconds = "0" + user.createdAt.getUTCSeconds()
|
||||
else
|
||||
creationSeconds = user.createdAt.getUTCSeconds()
|
||||
|
||||
|
||||
let creation = `${user.createdAt.getUTCFullYear()}-${creationMonth}-${creationDate} ${creationHours}:${creationMinutes}:${creationSeconds}`
|
||||
return { creation: creation }
|
||||
|
||||
let creation = `${user.createdAt.getUTCFullYear()}-${creationMonth}-${creationDate} ${creationHours}:${creationMinutes}:${creationSeconds}`
|
||||
return { creation: creation }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue