From ffdb5c7cc683ae3535ad13c484563c899247ece0 Mon Sep 17 00:00:00 2001 From: JacobTech Date: Mon, 18 Nov 2024 20:16:56 -0500 Subject: [PATCH] Time Fix --- Luski/GUI/MainScreen/UI/PublicServers/ChatMessage.cs | 5 +++-- Luski/Luski.csproj | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Luski/GUI/MainScreen/UI/PublicServers/ChatMessage.cs b/Luski/GUI/MainScreen/UI/PublicServers/ChatMessage.cs index 710e754..ae3170f 100644 --- a/Luski/GUI/MainScreen/UI/PublicServers/ChatMessage.cs +++ b/Luski/GUI/MainScreen/UI/PublicServers/ChatMessage.cs @@ -71,11 +71,12 @@ public class ChatMessage : UserControl { if (time.Date == DateTime.Now.ToLocalTime().Date) { - time_str = $"Today at {time.ToShortTimeString().Replace('\u202f', ' ')}"; + Console.WriteLine(time); + time_str = $"Today at {time:h:mm tt}"; } else if (time.Date == DateTime.Now.ToLocalTime().AddDays(-1).Date) { - time_str = $"Yesterday at {time.ToShortTimeString().Replace('\u202f', ' ')}"; + time_str = $"Yesterday at {time:h:mm tt}"; } else { diff --git a/Luski/Luski.csproj b/Luski/Luski.csproj index c2fc960..d5a6119 100644 --- a/Luski/Luski.csproj +++ b/Luski/Luski.csproj @@ -24,7 +24,7 @@ - +