view_game: display timezone-aware time for end timestamp
Django CI/CD / test (push) Successful in 1m8s Details
Django CI/CD / build-and-push (push) Successful in 2m16s Details

This commit is contained in:
Lukáš Kucharczyk 2024-10-14 13:02:18 +02:00
parent 7ec622a38a
commit 62a1fab15f
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, else session.purchase.edition.name,
platform=session.purchase.platform, 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) format_duration(session.duration_calculated, durationformat)
if session.duration_calculated if session.duration_calculated