From 62a1fab15fb621c64341c720e0432bf18375d7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Mon, 14 Oct 2024 13:02:18 +0200 Subject: [PATCH] view_game: display timezone-aware time for end timestamp --- games/views/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/views/game.py b/games/views/game.py index db05164..4b1a76c 100644 --- a/games/views/game.py +++ b/games/views/game.py @@ -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