Fix capture times not being timezone-adjusted. Closes #1393

This commit is contained in:
baldurk
2019-05-27 10:56:08 +01:00
parent 605f77217d
commit fe406b8ce9
+1 -1
View File
@@ -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)