aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Daniel Brown <[email protected]>2019-09-18 15:02:51 -0500
committerGravatar Daniel Brown <[email protected]>2019-09-18 15:02:51 -0500
commitf846416be2cd2fe05d0689f11bb30d3a67b4a571 (patch)
treef57751ffff04e6bc832bc428934e4d68864a1d50
parentInfraction Date Humanization (diff)
Infraction Date Humanization
- Changed to use the format `"%Y-%m-%d %H:%M"`, which will turn out looking like `2019-09-18 13:59` Signed-off-by: Daniel Brown <[email protected]>
-rw-r--r--bot/cogs/moderation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py
index 898f053f5..f16a13a3e 100644
--- a/bot/cogs/moderation.py
+++ b/bot/cogs/moderation.py
@@ -1260,11 +1260,11 @@ class Moderation(Scheduler, Cog):
active = infraction_object["active"]
user_id = infraction_object["user"]
hidden = infraction_object["hidden"]
- created = datetime.fromisoformat(infraction_object["inserted_at"].strftime("%c"))
+ created = datetime.fromisoformat(infraction_object["inserted_at"].strftime("%Y-%m-%d %H:%M"))
if not infraction_object["expires_at"]:
expires = "*Permanent*"
else:
- expires = datetime.fromisoformat(infraction_object["expires_at"].strftime("%c"))
+ expires = datetime.fromisoformat(infraction_object["expires_at"].strftime("%Y-%m-%d %H:%M"))
lines = textwrap.dedent(f"""
{"**===============**" if active else "==============="}