Skip to content

Commit

Permalink
Merge pull request #6748 from nextcloud/fix/revert-date-parsing-fix
Browse files Browse the repository at this point in the history
Revert "Fix incorrect date parsing."
  • Loading branch information
mgallien authored Sep 5, 2024
2 parents 0134fd5 + de18970 commit 5f1256c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsync/syncfileitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5f1256c

Please sign in to comment.