mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Fix capture times not being timezone-adjusted. Closes #1393
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user