From f846416be2cd2fe05d0689f11bb30d3a67b4a571 Mon Sep 17 00:00:00 2001 From: Daniel Brown Date: Wed, 18 Sep 2019 15:02:51 -0500 Subject: 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 --- bot/cogs/moderation.py | 4 ++-- 1 file 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 "==============="} -- cgit v1.2.3