qt: Don't use QDateTime::toSecsSinceEpoch
* lang/qt/src/qgpgmequickjob.cpp (addSubkeyWorker) (createWorker): Use toMSecsSinceEpoch instead toSecsSinceEpoch. -- toSecsSinceEpoch was only introduced in Qt 5.8.
This commit is contained in:
parent
0a567a94d9
commit
b61d0fbb74
@ -59,7 +59,7 @@ static QGpgMEQuickJob::result_type createWorker(GpgME::Context *ctx,
|
||||
auto err = ctx->createKey(uid.toUtf8().constData(),
|
||||
algo,
|
||||
0,
|
||||
expires.isValid() ? (unsigned long) expires.toSecsSinceEpoch() : 0,
|
||||
expires.isValid() ? (unsigned long) (expires.toMSecsSinceEpoch() / 1000) : 0,
|
||||
key,
|
||||
flags);
|
||||
return std::make_tuple(err, QString(), Error());
|
||||
@ -72,7 +72,7 @@ static QGpgMEQuickJob::result_type addSubkeyWorker(GpgME::Context *ctx,
|
||||
unsigned int flags)
|
||||
{
|
||||
auto err = ctx->createSubkey(key, algo, 0,
|
||||
expires.isValid() ? (unsigned long) expires.toSecsSinceEpoch() : 0,
|
||||
expires.isValid() ? (unsigned long) (expires.toMSecsSinceEpoch() / 1000): 0,
|
||||
flags);
|
||||
return std::make_tuple(err, QString(), Error());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user