[Pkg-owncloud-commits] [owncloud-client] 28/60: test/syncenginetestutils.h: Don't use toTimeZone only to get the UTC

Sandro Knauß hefee at debian.org
Sat Dec 16 10:38:12 UTC 2017


This is an automated email from the git hooks/post-receive script.

hefee pushed a commit to branch upstream
in repository owncloud-client.

commit e0954b099973c2e27e448a61045317e42d594ccd
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Fri Dec 1 13:16:20 2017 +0100

    test/syncenginetestutils.h: Don't use toTimeZone only to get the UTC
---
 test/syncenginetestutils.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h
index e6d4a39..c9f4e08 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));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list