mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 02:25:34 -04:00
Fixed missing seconds in time format.
Added new basic class for date/time format. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5825 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8a3973de81
commit
968f72f303
20 changed files with 195 additions and 77 deletions
|
@ -105,6 +105,7 @@
|
|||
#include "ChatStyle.h"
|
||||
#include "gui/settings/rsharesettings.h"
|
||||
#include "gui/notifyqt.h"
|
||||
#include "util/DateTime.h"
|
||||
|
||||
#include <retroshare/rsinit.h>
|
||||
|
||||
|
@ -323,8 +324,8 @@ QString ChatStyle::formatMessage(enumFormatMessage type, const QString &name, co
|
|||
#endif
|
||||
|
||||
QString formatMsg = style.replace("%name%", name)
|
||||
.replace("%date%", timestamp.date().toString(Qt::DefaultLocaleShortDate))
|
||||
.replace("%time%", timestamp.time().toString(Qt::DefaultLocaleShortDate))
|
||||
.replace("%date%", DateTime::formatDate(timestamp.date()))
|
||||
.replace("%time%", DateTime::formatTime(timestamp.time()))
|
||||
#ifdef COLORED_NICKNAMES
|
||||
.replace("%color%", color.name())
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue