diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2017-09-25 12:49:11 +0300 |
---|---|---|
committer | Olivier Goffart <olivier@woboq.com> | 2017-09-26 17:14:17 +0300 |
commit | 13e0cc6b501335c4cda9902905f503483237a46a (patch) | |
tree | 66ef6178dc05d0d7280ef0221f394a7ee8d2bfa5 /test/mockserver/httpserver.cpp | |
parent | 7af81f76657aa9aed7b3942484f925b9ac9c2574 (diff) |
Use QDateTime::currentDateTimeUtc instead of the non utc version
QDateTime::currentDateTime is terribly slow.
Diffstat (limited to 'test/mockserver/httpserver.cpp')
-rw-r--r-- | test/mockserver/httpserver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mockserver/httpserver.cpp b/test/mockserver/httpserver.cpp index c1f2a0cee..fbc24e847 100644 --- a/test/mockserver/httpserver.cpp +++ b/test/mockserver/httpserver.cpp @@ -32,7 +32,7 @@ void HttpServer::readClient() "Content-Type: text/html; charset=\"utf-8\"\r\n" "\r\n" "<h1>Nothing to see here</h1>\n" - << QDateTime::currentDateTime().toString() << "\n"; + << QDateTime::currentDateTimeUtc().toString() << "\n"; socket->close(); QtServiceBase::instance()->logMessage("Wrote to client"); |