1
0
Fork 0

GUI: fixed more bugs with UpdateChecker

This commit is contained in:
mrexodia 2016-01-07 13:24:43 +01:00
parent b3e0aa647d
commit 61f7b4b38a
1 changed files with 2 additions and 2 deletions

View File

@ -45,12 +45,12 @@ void UpdateChecker::finishedSlot(QNetworkReply* reply)
msg.exec();
return;
}
auto server = QDateTime::fromMSecsSinceEpoch(timestamp);
auto server = QDateTime::fromTime_t(timestamp);
auto build = QDateTime::fromString(QString(__DATE__).simplified(), "MMM d yyyy");
QString info;
auto dateFormat = "MMM d yyyy";
if(server > build)
info = QString("New build %1 available!\nDownload at http://x64dbg.com\n\nYou are now on build %2").arg(server.toString(dateFormat), build.toString(dateFormat));
info = QString("New build %1 available!<br>Download <a href=\"http://x64dbg.com\">here</a><br><br>You are now on build %2").arg(server.toString(dateFormat), build.toString(dateFormat));
else if(server < build)
info = QString("You have a development build (%1) of x64dbg!").arg(build.toString(dateFormat));
else