Revert change in timestamp formatting as the new code would sometimes malfunction on Windows.

This commit is contained in:
Collin Kidder
2019-03-30 23:46:09 -07:00
parent e013b91af3
commit 44287793b4
+1 -5
View File
@@ -283,11 +283,7 @@ QVariant CANFrameModel::data(const QModelIndex &index, int role) const
switch (Column(index.column()))
{
case Column::TimeStamp:
//Reformatting the output a bit with custom code
ts = Utility::formatTimestamp(thisFrame.timestamp);
if (ts.type() == QVariant::Double) return QString::number(ts.toDouble(), 'f', 5); //never scientific notation, 5 decimal places
if (ts.type() == QVariant::LongLong) return QString::number(ts.toLongLong()); //never scientific notion, all digits shown
if (ts.type() == QVariant::DateTime) return ts.toDateTime().toString(timeFormat); //custom set format for dates and times
return Utility::formatTimestamp(thisFrame.timestamp);
case Column::FrameId:
return Utility::formatCANID(thisFrame.ID, thisFrame.extended);
case Column::Extended: