diff --git a/src/libsync/syncfileitem.cpp b/src/libsync/syncfileitem.cpp index a7fd1c7d53e98..6bf10cd7af1b0 100644 --- a/src/libsync/syncfileitem.cpp +++ b/src/libsync/syncfileitem.cpp @@ -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();