From d2120a9c555b3f446dea44e91ac29e128a242c1b Mon Sep 17 00:00:00 2001 From: Silarn Date: Sat, 16 Feb 2019 18:38:55 -0600 Subject: Extend the update date back one hour to help prevent time mismatches - Server time and local time may not align perfectly for bulk API --- src/modinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modinfo.cpp') diff --git a/src/modinfo.cpp b/src/modinfo.cpp index 938a6418..4d30d770 100644 --- a/src/modinfo.cpp +++ b/src/modinfo.cpp @@ -335,7 +335,7 @@ std::set> ModInfo::filteredMods(QString gameName, QVaria QVariantMap update = result.toMap(); std::copy_if(s_Collection.begin(), s_Collection.end(), std::inserter(finalMods, finalMods.end()), [=](QSharedPointer info) -> bool { if (info->getNexusID() == update["mod_id"].toInt() && info->getGameName().compare(gameName, Qt::CaseInsensitive) == 0) - if (info->getLastNexusUpdate() > QDateTime::fromSecsSinceEpoch(update["latest_file_update"].toInt(), Qt::UTC)) + if (info->getLastNexusUpdate().addSecs(-3600) > QDateTime::fromSecsSinceEpoch(update["latest_file_update"].toInt(), Qt::UTC)) return true; return false; }); -- cgit v1.3.1