mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 10:05:19 -04:00
when message timestamp is less then 24 hours then use this format "hh:mm:ss" else "dd.MM.yyyy hh:mm:ss"
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2451 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e23878665b
commit
34735c9668
1 changed files with 8 additions and 0 deletions
|
@ -646,8 +646,16 @@ void MessagesDialog::insertMessages()
|
|||
{
|
||||
QDateTime qtime;
|
||||
qtime.setTime_t(it->ts);
|
||||
if (it->ts > 86400)
|
||||
{
|
||||
QString timestamp = qtime.toString("hh:mm:ss");
|
||||
item3 -> setText(timestamp);
|
||||
}
|
||||
else
|
||||
{
|
||||
QString timestamp = qtime.toString("dd.MM.yyyy hh:mm:ss");
|
||||
item3 -> setText(timestamp);
|
||||
}
|
||||
}
|
||||
|
||||
// From ....
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue