From ab89237a4c6b3cb270049c45392a2a9f8ab8807c Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Mon, 11 Oct 2021 21:56:13 +0200 Subject: [PATCH] extend the format --- src/com/AircraftReporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/AircraftReporter.cpp b/src/com/AircraftReporter.cpp index b222f9a..22e5e31 100644 --- a/src/com/AircraftReporter.cpp +++ b/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 */