time formatting fix

This commit is contained in:
Erik 2022-07-08 03:07:28 +03:00
parent ef9c631bc6
commit 69646b7b8c
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 2 additions and 2 deletions

View File

@ -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()
};

View File

@ -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),