fix local time

This commit is contained in:
beo3000 2026-02-08 16:54:24 +01:00
parent 2853eeed23
commit 4c01fda12c
2 changed files with 7 additions and 7 deletions

View File

@ -55,10 +55,10 @@
</MudStack> </MudStack>
</MudTd> </MudTd>
<MudTd DataLabel="Gestartet"> <MudTd DataLabel="Gestartet">
@(context.StartedAt?.ToString("HH:mm") ?? "-") @(context.StartedAt?.ToLocalTime().ToString("HH:mm") ?? "-")
</MudTd> </MudTd>
<MudTd DataLabel="Beendet"> <MudTd DataLabel="Beendet">
@(context.CompletedAt?.ToString("HH:mm") ?? "-") @(context.CompletedAt?.ToLocalTime().ToString("HH:mm") ?? "-")
</MudTd> </MudTd>
<MudTd DataLabel="Spieler"> <MudTd DataLabel="Spieler">
@context.ParticipantCount @context.ParticipantCount

View File

@ -88,7 +88,7 @@ else
Spiel beenden Spiel beenden
</MudButton> </MudButton>
} }
@if (Day.Status != DayStatus.Closed) @if (Day.Status != DayStatus.Closed && !GameState.Value.IsGameActive)
{ {
<MudButton Variant="Variant.Filled" <MudButton Variant="Variant.Filled"
Color="GetNextStatusColor(Day.Status)" Color="GetNextStatusColor(Day.Status)"
@ -334,7 +334,7 @@ else
</MudTd> </MudTd>
} }
<MudTd DataLabel="Strafe">@context.Name</MudTd> <MudTd DataLabel="Strafe">@context.Name</MudTd>
<MudTd DataLabel="Uhrzeit">@context.CreatedAt.ToString("HH:mm")</MudTd> <MudTd DataLabel="Uhrzeit">@context.CreatedAt.ToLocalTime().ToString("HH:mm")</MudTd>
<MudTd DataLabel="Preis" Style="text-align: right">@context.Price.ToString("C")</MudTd> <MudTd DataLabel="Preis" Style="text-align: right">@context.Price.ToString("C")</MudTd>
<MudTd DataLabel="Status"> <MudTd DataLabel="Status">
<MudChip T="string" <MudChip T="string"
@ -413,13 +413,13 @@ else
</tr> </tr>
<tr> <tr>
<td><strong>Erstellt</strong></td> <td><strong>Erstellt</strong></td>
<td>@Day.CreatedAt.ToString("dd.MM.yyyy HH:mm")</td> <td>@Day.CreatedAt.ToLocalTime().ToString("dd.MM.yyyy HH:mm")</td>
</tr> </tr>
@if (Day.ModifiedAt.HasValue) @if (Day.ModifiedAt.HasValue)
{ {
<tr> <tr>
<td><strong>Geändert</strong></td> <td><strong>Geändert</strong></td>
<td>@Day.ModifiedAt.Value.ToString("dd.MM.yyyy HH:mm")</td> <td>@Day.ModifiedAt.Value.ToLocalTime().ToString("dd.MM.yyyy HH:mm")</td>
</tr> </tr>
} }
</tbody> </tbody>