Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wolfi323:test
kio
v3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File v3.patch of Package kio
diff --git a/src/core/copyjob.cpp b/src/core/copyjob.cpp index 7288a261..b6884120 100644 --- a/src/core/copyjob.cpp +++ b/src/core/copyjob.cpp @@ -664,7 +664,10 @@ void CopyJobPrivate::addCopyInfoFromUDSEntry(const UDSEntry &entry, const QUrl & { struct CopyInfo info; info.permissions = entry.numberValue(KIO::UDSEntry::UDS_ACCESS, -1); - info.mtime = QDateTime::fromMSecsSinceEpoch(1000 * entry.numberValue(KIO::UDSEntry::UDS_MODIFICATION_TIME, -1), Qt::UTC); + const auto timeVal = entry.numberValue(KIO::UDSEntry::UDS_MODIFICATION_TIME, -1); qDebug() << "Wolfi: timeVal for UDS_MODIFICATION_TIME is" << timeVal; + if (timeVal != -1) { + info.mtime = QDateTime::fromMSecsSinceEpoch(1000 * timeVal, Qt::UTC); qDebug() << "valid, so set mtime."; + } info.ctime = QDateTime::fromMSecsSinceEpoch(1000 * entry.numberValue(KIO::UDSEntry::UDS_CREATION_TIME, -1), Qt::UTC); info.size = static_cast<KIO::filesize_t>(entry.numberValue(KIO::UDSEntry::UDS_SIZE, -1));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor