mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
Added and modified patch from Henry
Modified the date format according to the chosen language (locale). git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5798 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
59ed165c81
commit
a573211629
27 changed files with 159 additions and 129 deletions
|
@ -116,7 +116,7 @@ void BlogDetails::loadBlog()
|
|||
{
|
||||
QDateTime qtime;
|
||||
qtime.setTime_t(it->lastPost);
|
||||
QString timestamp = qtime.toString("yyyy-MM-dd hh:mm:ss");
|
||||
QString timestamp = qtime.toString(Qt::DefaultLocaleShortDate);
|
||||
ui.postline -> setText(timestamp);
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include "gui/feeds/FeedHolder.h"
|
||||
|
||||
#include <retroshare/rsblogs.h>
|
||||
|
||||
#include "rshare.h"
|
||||
|
||||
/****
|
||||
* #define DEBUG_ITEM 1
|
||||
|
@ -93,10 +93,7 @@ void BlogsMsgItem::updateItemStatic()
|
|||
//msgLabel->setText(QString::fromStdWString(cmi.msg));
|
||||
//msgcommentstextEdit->setHtml(QString::fromStdWString(cmi.msg));
|
||||
|
||||
QDateTime qtime;
|
||||
qtime.setTime_t(cmi.ts);
|
||||
QString timestamp = qtime.toString("dd.MMMM yyyy hh:mm:ss");
|
||||
datetimelabel->setText(timestamp);
|
||||
datetimelabel->setText(Rshare::customDate(cmi.ts));
|
||||
|
||||
//playButton->setEnabled(false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue