mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Merge pull request #6748 from nextcloud/fix/revert-date-parsing-fix
Revert "Fix incorrect date parsing."
This commit is contained in:
commit
5f1256c3d6
1 changed files with 2 additions and 2 deletions
|
@ -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 lastModifiedValue = properties.value(QStringLiteral("getlastmodified")).replace("GMT", "+0000");
|
||||
const auto date = QDateTime::fromString(lastModifiedValue, Qt::RFC2822Date);
|
||||
|
||||
const auto date = QDateTime::fromString(properties.value(QStringLiteral("getlastmodified")), Qt::RFC2822Date);
|
||||
Q_ASSERT(date.isValid());
|
||||
if (date.toSecsSinceEpoch() > 0) {
|
||||
item->_modtime = date.toSecsSinceEpoch();
|
||||
|
|
Loading…
Reference in a new issue