mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 09:40:10 +00:00
Add system time zone designation. Closes #21.
This commit is contained in:
parent
e8d1c5bf90
commit
570899928a
8 changed files with 89 additions and 13 deletions
|
|
@ -172,7 +172,7 @@ async def member_card(conn, member: Member) -> discord.Embed:
|
|||
return card
|
||||
|
||||
|
||||
async def front_status(switch: Switch, conn) -> discord.Embed:
|
||||
async def front_status(ctx: "CommandContext", switch: Switch, conn) -> discord.Embed:
|
||||
if switch:
|
||||
embed = status("")
|
||||
fronter_names = [member.name for member in await switch.fetch_members(conn)]
|
||||
|
|
@ -186,7 +186,7 @@ async def front_status(switch: Switch, conn) -> discord.Embed:
|
|||
|
||||
if switch.timestamp:
|
||||
embed.add_field(name="Since",
|
||||
value="{} UTC ({})".format(switch.timestamp.isoformat(sep=" ", timespec="seconds"),
|
||||
value="{} ({})".format(ctx.format_time(switch.timestamp),
|
||||
display_relative(switch.timestamp)))
|
||||
else:
|
||||
embed = error("No switches logged.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue