view_game: display timezone-aware time for end timestamp

This commit is contained in:
Lukáš Kucharczyk 2024-10-14 13:02:18 +02:00
parent 0759ad0804
commit 19056f846e
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ def view_game(request: HttpRequest, game_id: int) -> HttpResponse:
else session.purchase.edition.name,
platform=session.purchase.platform,
),
f"{local_strftime(session.timestamp_start)}{f"{session.timestamp_end.strftime(timeformat)}" if session.timestamp_end else ""}",
f"{local_strftime(session.timestamp_start)}{f"{local_strftime(session.timestamp_end, timeformat)}" if session.timestamp_end else ""}",
(
format_duration(session.duration_calculated, durationformat)
if session.duration_calculated