forked from Galactic/galactic-bot
time formatting fix
This commit is contained in:
parent
ef9c631bc6
commit
69646b7b8c
@ -98,7 +98,7 @@ class StatsCommand extends SlashCommand {
|
||||
memoryUsed: (memoryTotal - memoryFree).toFixed(1),
|
||||
memoryTotal,
|
||||
osType: os.type(),
|
||||
uptime: Util.humanise(Math.floor((Date.now() - os.uptime()) / 1000)),
|
||||
uptime: Util.humanise(os.uptime()),
|
||||
hostname: os.hostname()
|
||||
};
|
||||
|
||||
|
@ -66,7 +66,7 @@ class CaseCommand extends SlashCommand {
|
||||
let description = invoker.format(index, {
|
||||
uniqueID: infraction.id,
|
||||
type: infraction.type,
|
||||
date: `<t:${Math.floor(infraction.timestamp)}:f>`,
|
||||
date: `<t:${Math.floor(infraction.timestamp / 1000)}:f>`,
|
||||
unix: Math.floor(infraction.timestamp / 1000),
|
||||
relativeTime: `<t:${Math.floor(infraction.timestamp / 1000)}:R>`,
|
||||
relativeTimeSeconds: Math.floor((Date.now() - infraction.timestamp) / 1000),
|
||||
|
Loading…
Reference in New Issue
Block a user