diff --git a/retroshare-gui/src/gui/chat/ChatStyle.cpp b/retroshare-gui/src/gui/chat/ChatStyle.cpp
index 6efd82330..d86ecc4a1 100644
--- a/retroshare-gui/src/gui/chat/ChatStyle.cpp
+++ b/retroshare-gui/src/gui/chat/ChatStyle.cpp
@@ -195,7 +195,7 @@ QString ChatStyle::formatMessage(enumFormatMessage type, QString &name, QDateTim
if (style.isEmpty()) {
// default style
- style = "
";
+ style = "";
}
unsigned int formatFlag = 0;
@@ -232,16 +232,9 @@ QString ChatStyle::formatMessage(enumFormatMessage type, QString &name, QDateTim
// }
// }
- // if the message is on same date show only time
- QString timeFormat;
-// if (timestamp.daysTo(QDateTime::currentDateTime()) == 0) {
-// timeFormat = "hh:mm:ss";
-// } else {
- timeFormat = "dd.MM.yyyy hh:mm:ss";
-// }
-
QString formatMsg = style.replace("%name%", name)
- .replace("%timestamp%", timestamp.toString(timeFormat))
+ .replace("%date%", timestamp.date().toString("dd.MM.yyyy"))
+ .replace("%time%", timestamp.time().toString("hh:mm:ss"))
.replace("%message%", msg);
return formatMsg;
diff --git a/retroshare-gui/src/gui/qss/chat/history/hincoming.htm b/retroshare-gui/src/gui/qss/chat/history/hincoming.htm
index fce27c7b7..c668e565a 100644
--- a/retroshare-gui/src/gui/qss/chat/history/hincoming.htm
+++ b/retroshare-gui/src/gui/qss/chat/history/hincoming.htm
@@ -4,7 +4,7 @@
-[%timestamp%] |
+[%date% %time%] |
diff --git a/retroshare-gui/src/gui/qss/chat/history/houtgoing.htm b/retroshare-gui/src/gui/qss/chat/history/houtgoing.htm
index bb2de9957..4c2e0c1c0 100644
--- a/retroshare-gui/src/gui/qss/chat/history/houtgoing.htm
+++ b/retroshare-gui/src/gui/qss/chat/history/houtgoing.htm
@@ -4,7 +4,7 @@
-[%timestamp%] |
+[%date% %time%] |
diff --git a/retroshare-gui/src/gui/qss/chat/history/incoming.htm b/retroshare-gui/src/gui/qss/chat/history/incoming.htm
index 71c308421..ca1efd722 100644
--- a/retroshare-gui/src/gui/qss/chat/history/incoming.htm
+++ b/retroshare-gui/src/gui/qss/chat/history/incoming.htm
@@ -4,7 +4,7 @@
-[%timestamp%] |
+[%date% %time%] |
diff --git a/retroshare-gui/src/gui/qss/chat/history/outgoing.htm b/retroshare-gui/src/gui/qss/chat/history/outgoing.htm
index 99425b5dc..2f86ebba7 100644
--- a/retroshare-gui/src/gui/qss/chat/history/outgoing.htm
+++ b/retroshare-gui/src/gui/qss/chat/history/outgoing.htm
@@ -4,7 +4,7 @@
-[%timestamp%] |
+[%date% %time%] |
diff --git a/retroshare-gui/src/gui/qss/chat/private/hincoming.htm b/retroshare-gui/src/gui/qss/chat/private/hincoming.htm
index 10e6fb431..fdf4b60c6 100644
--- a/retroshare-gui/src/gui/qss/chat/private/hincoming.htm
+++ b/retroshare-gui/src/gui/qss/chat/private/hincoming.htm
@@ -4,7 +4,7 @@
diff --git a/retroshare-gui/src/gui/qss/chat/private/houtgoing.htm b/retroshare-gui/src/gui/qss/chat/private/houtgoing.htm
index 70e7a9d8d..3a8c63b20 100644
--- a/retroshare-gui/src/gui/qss/chat/private/houtgoing.htm
+++ b/retroshare-gui/src/gui/qss/chat/private/houtgoing.htm
@@ -4,7 +4,7 @@
diff --git a/retroshare-gui/src/gui/qss/chat/private/incoming.htm b/retroshare-gui/src/gui/qss/chat/private/incoming.htm
index 8c9aeb130..a0281c500 100644
--- a/retroshare-gui/src/gui/qss/chat/private/incoming.htm
+++ b/retroshare-gui/src/gui/qss/chat/private/incoming.htm
@@ -4,7 +4,7 @@
diff --git a/retroshare-gui/src/gui/qss/chat/private/outgoing.htm b/retroshare-gui/src/gui/qss/chat/private/outgoing.htm
index b2b3abe48..7bf036a26 100644
--- a/retroshare-gui/src/gui/qss/chat/private/outgoing.htm
+++ b/retroshare-gui/src/gui/qss/chat/private/outgoing.htm
@@ -4,7 +4,7 @@
diff --git a/retroshare-gui/src/gui/qss/chat/public/hincoming.htm b/retroshare-gui/src/gui/qss/chat/public/hincoming.htm
index f0db8bc95..6b20807d5 100644
--- a/retroshare-gui/src/gui/qss/chat/public/hincoming.htm
+++ b/retroshare-gui/src/gui/qss/chat/public/hincoming.htm
@@ -2,6 +2,6 @@
%css-style%
-%timestamp%
+%date% %time%
%name%
%message%
diff --git a/retroshare-gui/src/gui/qss/chat/public/houtgoing.htm b/retroshare-gui/src/gui/qss/chat/public/houtgoing.htm
index 17ce35d38..b9c22da01 100644
--- a/retroshare-gui/src/gui/qss/chat/public/houtgoing.htm
+++ b/retroshare-gui/src/gui/qss/chat/public/houtgoing.htm
@@ -2,6 +2,6 @@
%css-style%
-%timestamp%
+%date% %time%
%name%
%message%
diff --git a/retroshare-gui/src/gui/qss/chat/public/incoming.htm b/retroshare-gui/src/gui/qss/chat/public/incoming.htm
index ef2ae9ee7..f65d02b56 100644
--- a/retroshare-gui/src/gui/qss/chat/public/incoming.htm
+++ b/retroshare-gui/src/gui/qss/chat/public/incoming.htm
@@ -2,6 +2,6 @@
%css-style%
-%timestamp%
+%time%
%name%
%message%
diff --git a/retroshare-gui/src/gui/qss/chat/public/outgoing.htm b/retroshare-gui/src/gui/qss/chat/public/outgoing.htm
index 09c86bfee..59e07d67f 100644
--- a/retroshare-gui/src/gui/qss/chat/public/outgoing.htm
+++ b/retroshare-gui/src/gui/qss/chat/public/outgoing.htm
@@ -2,6 +2,6 @@
%css-style%
-%timestamp%
+%time%
%name%
%message%