From 3cb4209d7b3c6a0b8455f49b991b897adf302572 Mon Sep 17 00:00:00 2001
From: Loren Burkholder <55629213+LorenDB@users.noreply.github.com>
Date: Fri, 30 Jul 2021 07:56:25 -0400
Subject: [PATCH] Reformat dates

Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
---
 src/ReadReceiptsModel.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/ReadReceiptsModel.cpp b/src/ReadReceiptsModel.cpp
index d8b7141fc..562353a79 100644
--- a/src/ReadReceiptsModel.cpp
+++ b/src/ReadReceiptsModel.cpp
@@ -106,13 +106,14 @@ ReadReceiptsModel::dateFormat(const QDateTime &then) const
         auto days = then.daysTo(now);
 
         if (days == 0)
-                return tr("Today %1")
+                return tr("Today, %1")
                   .arg(QLocale::system().toString(then.time(), QLocale::ShortFormat));
         else if (days < 2)
-                return tr("Yesterday %1")
+                return tr("Yesterday, %1")
                   .arg(QLocale::system().toString(then.time(), QLocale::ShortFormat));
         else if (days < 7)
-                return QString("%1 %2")
+                //: %1 is the name of the current day, %2 is the time the read receipt was read. The result may look like this: Monday, 7:15
+                return QString("%1, %2")
                   .arg(then.toString("dddd"))
                   .arg(QLocale::system().toString(then.time(), QLocale::ShortFormat));
 
-- 
GitLab