This function was using 1 for its date index, which is the same
index as was used for bufferid. The correct index to use is 2.
Closes GH-346.
QDateTime timestamp;
for (int i = 0; i < limit && query.next(); i++) {
QDateTime timestamp;
for (int i = 0; i < limit && query.next(); i++) {
- timestamp = query.value(1).toDateTime();
+ timestamp = query.value(2).toDateTime();
timestamp.setTimeSpec(Qt::UTC);
Message msg(timestamp,
bufferInfoHash[query.value(1).toInt()],
timestamp.setTimeSpec(Qt::UTC);
Message msg(timestamp,
bufferInfoHash[query.value(1).toInt()],