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:
authorChristian Kamm <mail@ckamm.de>2017-06-14 13:01:32 +0300
committerChristian Kamm <mail@ckamm.de>2017-06-15 14:53:57 +0300
commitcd411e5fb1e7321a5e0336d9ce53ad169750338c (patch)
tree2d0b9454ab432c66b9422e2d2cbbcd04a53deb62 /test/syncenginetestutils.h
parent9daef50ce6baeaeff24596cf72fe4585156ee910 (diff)
SyncEngineTest: Fix date locale related bug
The client is very picky about date strings it accepts. If dates are formatted with a non-C locale (such as localized weekday names), it fails to parse it and tests fail in subtle ways.
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 64b063284..5be71e0f7 100644
--- a/test/syncenginetestutils.h
+++ b/test/syncenginetestutils.h
@@ -346,7 +346,7 @@ public:
xml.writeEmptyElement(davUri, QStringLiteral("resourcetype"));
auto gmtDate = fileInfo.lastModified.toTimeZone(QTimeZone(0));
- auto stringDate = gmtDate.toString("ddd, dd MMM yyyy HH:mm:ss 'GMT'");
+ 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));
xml.writeTextElement(davUri, QStringLiteral("getetag"), fileInfo.etag);