Commit 971fb7de authored by Thiago Santini's avatar Thiago Santini

Updates meta date format to international standard

parent 51a839aa
......@@ -604,7 +604,7 @@ void MainWindow::storeMetaDataHead()
QTextStream out(&file);
QDateTime utc = QDateTime::currentDateTimeUtc();
out << "start_utc" << Token::Delimiter << utc.toString() << Token::Newline;
out << "start_utc" << Token::Delimiter << utc.toString(metaDateFormat) << Token::Newline;
out << "start_timer" << Token::Delimiter << gTimer.elapsed() << Token::Newline;
out << "version" << Token::Delimiter << VERSION << Token::Newline;
out << "build" << Token::Delimiter << QString("%1 %2").arg(GIT_BRANCH).arg(GIT_COMMIT_HASH) << Token::Newline;
......@@ -625,7 +625,7 @@ void MainWindow::storeMetaDataTail()
QTextStream out(&file);
QDateTime utc = QDateTime::currentDateTimeUtc();
out << "end_utc" << Token::Delimiter << utc.toString() << Token::Newline;
out << "end_utc" << Token::Delimiter << utc.toString(metaDateFormat) << Token::Newline;
out << "end_timer" << Token::Delimiter << gTimer.elapsed() << Token::Newline;
file.close();
......
......@@ -101,6 +101,7 @@ private:
void setupWidget(ERWidget* widget, QSettings* settings, QPushButton* button = nullptr);
const QString metaDataFile = "meta.tsv";
const QString metaDateFormat = "yyyy-mm-dd HH:mm:ss.zzz";
void storeMetaDataHead();
void storeMetaDataTail();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment