This commit is contained in:
JacobTech 2024-11-18 20:16:56 -05:00
parent 9961e926fe
commit ffdb5c7cc6
2 changed files with 4 additions and 3 deletions

View File

@ -71,11 +71,12 @@ public class ChatMessage : UserControl
{ {
if (time.Date == DateTime.Now.ToLocalTime().Date) 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) 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 else
{ {

View File

@ -24,7 +24,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="GraphicsManager" Version="1.1.1-alpha33" /> <PackageReference Include="GraphicsManager" Version="1.1.1-alpha33" />
<PackageReference Include="Luski.net" Version="2.0.1-alpha18" /> <PackageReference Include="Luski.net" Version="2.0.1-alpha18" />
<PackageReference Include="Updater" Version="1.0.0-alpha04" /> <PackageReference Include="Updater" Version="1.0.0-alpha05" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>