From 5d01eb7f5c5ab6890d64ebf4ef1849c6de7522b4 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Fri, 22 Mar 2024 08:48:56 -0700 Subject: [PATCH] use local timezone --- Sentaur.Leaderboard.Web/Pages/Score.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sentaur.Leaderboard.Web/Pages/Score.razor b/Sentaur.Leaderboard.Web/Pages/Score.razor index b9eef7c..f270e74 100644 --- a/Sentaur.Leaderboard.Web/Pages/Score.razor +++ b/Sentaur.Leaderboard.Web/Pages/Score.razor @@ -35,7 +35,7 @@ else @score.Name @score.Score @score.Duration.ToString(@"mm\:ss") - @TimeZoneInfo.ConvertTimeFromUtc(score.Timestamp.DateTime, TimeZoneInfo.FindSystemTimeZoneById("America/Los_Angeles")).ToString("dddd, h:mm tt") + @score.Timestamp.ToLocalTime().ToString("dddd, h:mm tt") }