From ece45b3156149fb732a2582270c7d597a51ffd09 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Tue, 16 Feb 2021 12:08:55 -0800 Subject: [PATCH] [Tools] 2nd fix for join time with no ms --- tools/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tools.py b/tools/tools.py index c38b6a3..b582a0c 100644 --- a/tools/tools.py +++ b/tools/tools.py @@ -768,7 +768,7 @@ class Tools(commands.Cog): try: date_join = datetime.datetime.strptime(str(time), "%Y-%m-%d %H:%M:%S.%f") except ValueError: - member_created_at = f"{str(member.created_at)}.0" + time = f"{str(time)}.0" date_join = datetime.datetime.strptime(str(time), "%Y-%m-%d %H:%M:%S.%f") date_now = datetime.datetime.now(datetime.timezone.utc) date_now = date_now.replace(tzinfo=None)