From fe406b8ce9da28c8d0e15f8e6b5b9b9806cce932 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 27 May 2019 10:56:08 +0100 Subject: [PATCH] Fix capture times not being timezone-adjusted. Closes #1393 --- qrenderdoc/Windows/Dialogs/LiveCapture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/Dialogs/LiveCapture.cpp b/qrenderdoc/Windows/Dialogs/LiveCapture.cpp index 44d632f8c..cc09674ad 100644 --- a/qrenderdoc/Windows/Dialogs/LiveCapture.cpp +++ b/qrenderdoc/Windows/Dialogs/LiveCapture.cpp @@ -1009,7 +1009,7 @@ void LiveCapture::captureAdded(const NewCaptureData &newCapture) cap->api = QString::fromUtf8(m_Connection->GetAPI()); cap->timestamp = - QDateTime(QDate(1970, 1, 1), QTime(0, 0, 0)).addSecs(newCapture.timestamp).toLocalTime(); + QDateTime(QDate(1970, 1, 1), QTime(0, 0, 0), Qt::UTC).addSecs(newCapture.timestamp).toLocalTime(); cap->thumb = QImage(newCapture.thumbnail.data(), newCapture.thumbWidth, newCapture.thumbHeight, newCapture.thumbWidth * 3, QImage::Format_RGB888)