mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
test/syncenginetestutils.h: Don't use toTimeZone only to get the UTC
This commit is contained in:
parent
5ff3e448f5
commit
e0954b0999
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue