From af28804ce81497d7f7dc9b13c17a3dd6f9f8dc43 Mon Sep 17 00:00:00 2001 From: Scoder12 <34356756+Scoder12@users.noreply.github.com> Date: Fri, 16 Jul 2021 18:24:33 -0700 Subject: [PATCH] Use discord timestamps Closes #18 --- cogs/ctftime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/ctftime.py b/cogs/ctftime.py index 6d3b220..3df423e 100644 --- a/cogs/ctftime.py +++ b/cogs/ctftime.py @@ -103,8 +103,8 @@ async def current(self, ctx): if ctf['start'] < unix_now and ctf['end'] > unix_now: # Check if the ctf is running running = True embed = discord.Embed(title=':red_circle: ' + ctf['name']+' IS LIVE', description=ctf['url'], color=15874645) - start = datetime.utcfromtimestamp(ctf['start']).strftime('%Y-%m-%d %H:%M:%S') + ' UTC' - end = datetime.utcfromtimestamp(ctf['end']).strftime('%Y-%m-%d %H:%M:%S') + ' UTC' + start = f"" + end = f"" if ctf['img'] != '': embed.set_thumbnail(url=ctf['img']) else: