diff options
author | Luboš Doležel <lubos@dolezel.info> | 2015-12-01 13:25:31 +0100 |
---|---|---|
committer | Luboš Doležel <lubos@dolezel.info> | 2015-12-01 13:25:31 +0100 |
commit | 592d1997df7671e545f56628c1a39f076356b4f3 (patch) | |
tree | a4d3a76a9f8006ee9b7af8167e03a95351de5cfd /src | |
parent | 35bbe88dd0591e3b14b62b8f3bf5b141aeeb95b0 (diff) | |
parent | a072b933032647cd2feca45adb4c11fa80410af6 (diff) | |
download | twinkle-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
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/historyform.cpp | 4 |
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: |