From 93cfb76e70e13b552ad62c8dc9c4e7b40545d3e8 Mon Sep 17 00:00:00 2001 From: kwzrd Date: Mon, 15 Feb 2021 20:30:15 +0100 Subject: [PATCH] Bot: use UTC timestamp --- ryan/__main__.py | 2 +- ryan/bot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ryan/__main__.py b/ryan/__main__.py index ff2be73..ea6d9f3 100644 --- a/ryan/__main__.py +++ b/ryan/__main__.py @@ -52,7 +52,7 @@ async def custom_help(ctx: commands.Context) -> None: help_embed.add_field(name="Active extensions:", value=active_cogs, inline=False) # Field: footer - help_embed.set_footer(text=f"Awakened {bot.start_time.humanize(arrow.now())}") + help_embed.set_footer(text=f"Awakened {bot.start_time.humanize(arrow.utcnow())}") await ctx.send(embed=help_embed) diff --git a/ryan/bot.py b/ryan/bot.py index fbecc0a..dd2fc08 100644 --- a/ryan/bot.py +++ b/ryan/bot.py @@ -51,7 +51,7 @@ async def start(self, *args, **kwargs) -> None: until after this method is called. """ log.info("Initializing Ryan attributes from an async context") - self.start_time = arrow.now() + self.start_time = arrow.utcnow() connector = aiohttp.TCPConnector(resolver=aiohttp.AsyncResolver(), family=socket.AF_INET) self.http_session = aiohttp.ClientSession(connector=connector)