diff --git a/src/modules/importers/opera/OperaBookmarksImportDataExchanger.cpp b/src/modules/importers/opera/OperaBookmarksImportDataExchanger.cpp index 5c08d7ec6d..4523855102 100644 --- a/src/modules/importers/opera/OperaBookmarksImportDataExchanger.cpp +++ b/src/modules/importers/opera/OperaBookmarksImportDataExchanger.cpp @@ -285,11 +285,11 @@ void OperaBookmarksImportJob::start() } else if (line.startsWith(QLatin1String("\tCREATED="))) { - bookmark->setData(QDateTime::fromTime_t(line.section(QLatin1Char('='), 1, -1).toUInt()), BookmarksModel::TimeAddedRole); + bookmark->setData(QDateTime::fromSecsSinceEpoch(line.section(QLatin1Char('='), 1, -1).toUInt()), BookmarksModel::TimeAddedRole); } else if (line.startsWith(QLatin1String("\tVISITED="))) { - bookmark->setData(QDateTime::fromTime_t(line.section(QLatin1Char('='), 1, -1).toUInt()), BookmarksModel::TimeVisitedRole); + bookmark->setData(QDateTime::fromSecsSinceEpoch(line.section(QLatin1Char('='), 1, -1).toUInt()), BookmarksModel::TimeVisitedRole); } } } diff --git a/src/modules/importers/opera/OperaNotesImportDataExchanger.cpp b/src/modules/importers/opera/OperaNotesImportDataExchanger.cpp index 008395f21f..d0b09cb49d 100644 --- a/src/modules/importers/opera/OperaNotesImportDataExchanger.cpp +++ b/src/modules/importers/opera/OperaNotesImportDataExchanger.cpp @@ -243,7 +243,7 @@ bool OperaNotesImportDataExchanger::importData(const QString &path) } else if (line.startsWith(QLatin1String("\tCREATED="))) { - note->setData(QDateTime::fromTime_t(line.section(QLatin1Char('='), 1, -1).toUInt()), BookmarksModel::TimeAddedRole); + note->setData(QDateTime::fromSecsSinceEpoch(line.section(QLatin1Char('='), 1, -1).toUInt()), BookmarksModel::TimeAddedRole); } } }