Browse Source

Merge pull request #8243 from Williangalvani/fixcsvdate

Vehicle: Change date format in csv output
QGC4.4
Don Gagne 5 years ago committed by GitHub
parent
commit
1af3019667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Vehicle/Vehicle.cc

2
src/Vehicle/Vehicle.cc

@ -4151,7 +4151,7 @@ void Vehicle::_writeCsvLine() @@ -4151,7 +4151,7 @@ void Vehicle::_writeCsvLine()
QTextStream stream(&_csvLogFile);
// Write timestamp to csv file
allFactValues << QDateTime::currentDateTime().toString();
allFactValues << QDateTime::currentDateTime().toString(QStringLiteral("yyyy-MM-dd hh:mm:ss.zzz"));
// Write Vehicle's own facts
for (const QString& factName : factNames()) {
allFactValues << getFact(factName)->cookedValueString();

Loading…
Cancel
Save