소스 검색

extend the format

Sven Czarnian 3 년 전
부모
커밋
ab89237a4c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/com/AircraftReporter.cpp

+ 1 - 1
src/com/AircraftReporter.cpp

@@ -69,7 +69,7 @@ bool AircraftReporter::send(aman::AircraftReport& report) {
         /* set the report time */
         std::stringstream stream;
         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]);
 
         /* serialize the report */