test/syncenginetestutils.h: Don't use toTimeZone only to get the UTC

This commit is contained in:
Olivier Goffart 2017-12-01 13:16:20 +01:00
parent 5ff3e448f5
commit e0954b0999

View file

@ -357,7 +357,7 @@ public:
} else
xml.writeEmptyElement(davUri, QStringLiteral("resourcetype"));
auto gmtDate = fileInfo.lastModified.toTimeZone(QTimeZone(0));
auto gmtDate = fileInfo.lastModified.toUTC();
auto stringDate = QLocale::c().toString(gmtDate, "ddd, dd MMM yyyy HH:mm:ss 'GMT'");
xml.writeTextElement(davUri, QStringLiteral("getlastmodified"), stringDate);
xml.writeTextElement(davUri, QStringLiteral("getcontentlength"), QString::number(fileInfo.size));