summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: