diff --git a/moderation/moderation.py b/moderation/moderation.py index eea287e..dd333d2 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -1716,10 +1716,10 @@ class Moderation(commands.Cog): if case['type'] not in accepted_types: continue - timestamp = case['timestamp'] / 1000 + timestamp = round(case['timestamp'] / 1000) if case['duration']: - duration = timedelta(milliseconds=case['duration']) + duration = timedelta(seconds=round(case['duration'] / 1000)) if case['resolved']: resolved = 1 @@ -1731,7 +1731,7 @@ class Moderation(commands.Cog): if change['type'] == 'RESOLVE': resolved_by = change['staff'] resolved_reason = change['reason'] - resolved_timestamp = change['timestamp'] / 1000 + resolved_timestamp = round(change['timestamp'] / 1000) break if resolved_by is None: resolved_by = '?'