Use QDateTime::fromSecsSinceEpoch in Qt 6 instead of QDateTime::fromTime_t

This commit is contained in:
thunder2 2025-07-18 18:58:45 +02:00 committed by Thunder
parent a00c1375e5
commit 42b3b95fd8
19 changed files with 62 additions and 41 deletions

View file

@ -28,6 +28,7 @@
#include "FeedReaderStringDefs.h"
#include "gui/settings/rsharesettings.h"
#include "gui/common/UIStateHelper.h"
#include "util/DateTime.h"
#include <retroshare/rsgxsforums.h>
#include <retroshare/rsposted.h>
@ -339,8 +340,7 @@ bool AddFeedDialog::fillFeed(uint32_t feedId)
ui->useStandardUpdateInterval->setChecked(feedInfo.flag.standardUpdateInterval);
ui->updateIntervalSpinBox->setValue(feedInfo.updateInterval / 60);
QDateTime dateTime;
dateTime.setTime_t(feedInfo.lastUpdate);
QDateTime dateTime = DateTime::DateTimeFromTime_t(feedInfo.lastUpdate);
ui->lastUpdate->setText(dateTime.toString());
ui->useStandardStorageTimeCheckBox->setChecked(feedInfo.flag.standardStorageTime);