summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuboš Doležel <lubos@dolezel.info>2015-12-01 13:25:31 +0100
committerLuboš Doležel <lubos@dolezel.info>2015-12-01 13:25:31 +0100
commit592d1997df7671e545f56628c1a39f076356b4f3 (patch)
treea4d3a76a9f8006ee9b7af8167e03a95351de5cfd
parent35bbe88dd0591e3b14b62b8f3bf5b141aeeb95b0 (diff)
parenta072b933032647cd2feca45adb4c11fa80410af6 (diff)
downloadtwinkle-592d1997df7671e545f56628c1a39f076356b4f3.tar
twinkle-592d1997df7671e545f56628c1a39f076356b4f3.tar.gz
twinkle-592d1997df7671e545f56628c1a39f076356b4f3.tar.lz
twinkle-592d1997df7671e545f56628c1a39f076356b4f3.tar.xz
twinkle-592d1997df7671e545f56628c1a39f076356b4f3.zip
Merge pull request #32 from palinek/history_date
historyform: Fix sorting by time of event
-rw-r--r--src/gui/historyform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/historyform.cpp b/src/gui/historyform.cpp
index d188255..e8e88ae 100644
--- a/src/gui/historyform.cpp
+++ b/src/gui/historyform.cpp
@@ -27,6 +27,7 @@
#include "qicon.h"
#include "audits/memman.h"
#include "historyform.h"
+#include <QDateTime>
#define HISTCOL_TIMESTAMP 0
#define HISTCOL_DIRECTION 1
@@ -174,8 +175,7 @@ void HistoryForm::loadHistory()
{
case HISTCOL_TIMESTAMP:
{
- QString time = QString::fromStdString(time2str(cr->time_start, "%d %b %Y %H:%M:%S"));
- m_model->setData(index, time);
+ m_model->setData(index, QDateTime::fromTime_t(cr->time_start));
break;
}
case HISTCOL_DIRECTION: