Signature verification UI

This commit is contained in:
Jakub Melka
2020-06-20 18:20:57 +02:00
parent 3e6f4ada3d
commit 17d32fd0b8
12 changed files with 675 additions and 11 deletions

View File

@ -861,8 +861,8 @@ QDateTime pdf::PDFPublicKeySignatureHandler::getDateTimeFromASN(const ASN1_TIME*
tm internalTime = { };
if (ASN1_TIME_to_tm(time, &internalTime) > 0)
{
time_t localTime = mktime(&internalTime);
result = QDateTime::fromSecsSinceEpoch(localTime, Qt::LocalTime);
time_t localTime = _mkgmtime(&internalTime);
result = QDateTime::fromSecsSinceEpoch(localTime, Qt::UTC);
}
}