From 69646b7b8c3982888c6b0a70c0aa31cbfd0ef67f Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 8 Jul 2022 03:07:28 +0300 Subject: [PATCH] time formatting fix --- src/structure/components/commands/developer/Stats.js | 2 +- src/structure/components/commands/moderation/Case.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structure/components/commands/developer/Stats.js b/src/structure/components/commands/developer/Stats.js index 6cece16..33d44fb 100644 --- a/src/structure/components/commands/developer/Stats.js +++ b/src/structure/components/commands/developer/Stats.js @@ -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() }; diff --git a/src/structure/components/commands/moderation/Case.js b/src/structure/components/commands/moderation/Case.js index e79d691..c9b9b90 100644 --- a/src/structure/components/commands/moderation/Case.js +++ b/src/structure/components/commands/moderation/Case.js @@ -66,7 +66,7 @@ class CaseCommand extends SlashCommand { let description = invoker.format(index, { uniqueID: infraction.id, type: infraction.type, - date: ``, + date: ``, unix: Math.floor(infraction.timestamp / 1000), relativeTime: ``, relativeTimeSeconds: Math.floor((Date.now() - infraction.timestamp) / 1000),