Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2017-12-01 15:16:20 +0300
committerOlivier Goffart <ogoffart@woboq.com>2017-12-01 15:18:09 +0300
commite0954b099973c2e27e448a61045317e42d594ccd (patch)
tree027c6836b8e9eba900b70ca1c2cc2c88c86a2fc9 /test/syncenginetestutils.h
parent5ff3e448f53f6d9dcf83dbad7023ba7c4e014182 (diff)
test/syncenginetestutils.h: Don't use toTimeZone only to get the UTC
Diffstat (limited to 'test/syncenginetestutils.h')
-rw-r--r--test/syncenginetestutils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h
index e6d4a395e..c9f4e088a 100644
--- a/test/syncenginetestutils.h
+++ b/test/syncenginetestutils.h
@@ -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));