Skip to content

Commit

Permalink
PR #49: Use UTC timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
kwzrd authored Feb 15, 2021
2 parents 2db5bc9 + 93cfb76 commit 3e1a2db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ryan/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion ryan/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e1a2db

Please sign in to comment.