Time Fix
This commit is contained in:
parent
9961e926fe
commit
ffdb5c7cc6
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user