From dce660357aceab527c289b432f3add5480450ec1 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 29 Nov 2018 22:15:12 +0100 Subject: [PATCH] fixed Travis compilation --- retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp b/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp index e38ae759d..6f9b0fa75 100644 --- a/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp +++ b/retroshare-gui/src/gui/gxsforums/GxsForumModel.cpp @@ -1165,10 +1165,13 @@ static void recursPrintModel(const std::vector& entries,For { const ForumModelPostEntry& e(entries[index]); + QDateTime qtime; + qtime.setTime_t(e.mPublishTs); + std::cerr << std::string(depth*2,' ') << index << " : " << e.mAuthorId.toStdString() << " " << QString("%1").arg((uint32_t)e.mPostFlags,8,16,QChar('0')).toStdString() << " " << QString("%1").arg((uint32_t)e.mMsgStatus,8,16,QChar('0')).toStdString() << " " - << QDateTime::fromSecsSinceEpoch(e.mPublishTs).toString().toStdString() << " \"" << e.mTitle << "\"" << std::endl; + << qtime.toString().toStdString() << " \"" << e.mTitle << "\"" << std::endl; for(uint32_t i=0;i