little date adjustements
This commit is contained in:
@@ -357,7 +357,11 @@ const joinGame = async (game) => {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="font-medium text-sm">Match ID: {{ match.id }}</div>
|
<div class="font-medium text-sm">Match ID: {{ match.id }}</div>
|
||||||
<div class="text-[10px] text-muted-foreground">Type: {{ match.type }}
|
<div class="text-[10px] text-muted-foreground">{{ new
|
||||||
|
Date(game.began_at).toLocaleDateString() }} • {{ new
|
||||||
|
Date(game.began_at).toLocaleTimeString([], {
|
||||||
|
hour: '2-digit',
|
||||||
|
minute: '2-digit' }) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -396,7 +400,11 @@ const joinGame = async (game) => {
|
|||||||
<div>
|
<div>
|
||||||
<div class="font-medium text-sm">Host: {{ game.player1?.nickname ||
|
<div class="font-medium text-sm">Host: {{ game.player1?.nickname ||
|
||||||
'Anonymous' }}</div>
|
'Anonymous' }}</div>
|
||||||
<div class="text-[10px] text-muted-foreground">{{ game.began_at }}</div>
|
<div class="text-[10px] text-muted-foreground">{{ new
|
||||||
|
Date(game.began_at).toLocaleDateString() }} • {{ new
|
||||||
|
Date(game.began_at).toLocaleTimeString([], {
|
||||||
|
hour: '2-digit',
|
||||||
|
minute: '2-digit' }) }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user