mirror of
https://github.com/Stone-Red-Code/Decho.git
synced 2026-09-04 08:56:14 +02:00
Fix message timestamps are comparison for current date
This commit is contained in:
@@ -51,9 +51,9 @@ public sealed class MessageViewModel(MessageModel model) : ViewModelBase
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTimeOffset now = DateTimeOffset.Now;
|
||||
DateTimeOffset now = DateTimeOffset.Now.ToLocalTime();
|
||||
|
||||
if (Model.SentAt.Date == now.Date)
|
||||
if (Model.SentAt.ToLocalTime().Date == now.Date)
|
||||
{
|
||||
return Model.SentAt.ToLocalTime().ToString("t");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user