Fix incorrect date parsing.
Signed-off-by: alex-z <blackslayer4@gmail.com>pull/6738/head
parent
0d7ab96330
commit
00022a3f9c
|
@ -219,8 +219,8 @@ SyncFileItemPtr SyncFileItem::fromProperties(const QString &filePath, const QMap
|
|||
const auto intConvertedValue = properties.value(QStringLiteral("lock-timeout")).toULongLong(&ok);
|
||||
item->_lockTimeout = ok ? intConvertedValue : 0;
|
||||
}
|
||||
|
||||
const auto date = QDateTime::fromString(properties.value(QStringLiteral("getlastmodified")), Qt::RFC2822Date);
|
||||
const auto lastModifiedValue = properties.value(QStringLiteral("getlastmodified")).replace("GMT", "+0000");
|
||||
const auto date = QDateTime::fromString(lastModifiedValue, Qt::RFC2822Date);
|
||||
Q_ASSERT(date.isValid());
|
||||
if (date.toSecsSinceEpoch() > 0) {
|
||||
item->_modtime = date.toSecsSinceEpoch();
|
||||
|
|
Loading…
Reference in New Issue