From 37edfcd44c5687aa149be9da65ab102f2805ac2c Mon Sep 17 00:00:00 2001 From: alex-z Date: Sun, 12 May 2024 13:02:56 +0200 Subject: [PATCH] Revert "Fix incorrect date parsing." This reverts commit 04c0125bd10c3961af11f233f32b0408f0c21401. --- src/libsync/syncfileitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsync/syncfileitem.cpp b/src/libsync/syncfileitem.cpp index a7fd1c7d53e9..6bf10cd7af1b 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();