extend the format

This commit is contained in:
Sven Czarnian
2021-10-11 21:56:13 +02:00
parent 02830454e7
commit ab89237a4c

View File

@@ -69,7 +69,7 @@ bool AircraftReporter::send(aman::AircraftReport& report) {
/* set the report time */ /* set the report time */
std::stringstream stream; std::stringstream stream;
auto reportTime = std::chrono::utc_clock::now(); auto reportTime = std::chrono::utc_clock::now();
stream << std::format("{0:%y%m%d%H%M%S}", reportTime); stream << std::format("{0:%Y%m%d%H%M%S}", reportTime);
report.set_reporttime(String::splitString(stream.str(), ".")[0]); report.set_reporttime(String::splitString(stream.str(), ".")[0]);
/* serialize the report */ /* serialize the report */