Skip to content

Commit 9589764

Browse files
committed
add year to game date/time
1 parent c927b18 commit 9589764

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assets/html/game/sm5.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<div style="text-align: center;">
2626
<div style="margin-left: 2rem; margin-right: 2rem; text-align: center;">
27-
<span title="Game Date"><h2 style="font-size: 25px;">Game on {{ game.get_timestamp()}}</h2></span>
27+
<span title="Game Date ({{ game.start_time}})"><h2 style="font-size: 25px;">Game on {{ game.get_timestamp()}}</h2></span>
2828

2929
<form method="post" action="/matchmaking" class="inline">
3030
<input type="hidden" name="mode" value="sm5">

db/game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def get_timestamp(self, time_zone: str = "America/Los_Angeles") -> str:
419419
else:
420420
zero_pad = "-"
421421

422-
return strftime_ordinal(f"%A, %B {'{S}'} at %{zero_pad}I:%M %p", self.start_time)
422+
return strftime_ordinal(f"%A, %B {'{S}'}, %Y at %{zero_pad}I:%M %p", self.start_time)
423423

424424
async def get_battlesuits(self) -> List[str]: # only the non-member players
425425
"""

0 commit comments

Comments
 (0)