IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 1a33b645 authored by Remy Prechelt's avatar Remy Prechelt
Browse files

Change to ISO 8601 for our time strings.

parent 6a8dcda9
No related branches found
No related tags found
No related merge requests found
......@@ -60,8 +60,8 @@ namespace corsika {
// create a quick lambda function to convert a time-instance to a string
auto timeToString = [&](auto const time) -> std::string {
// the format for our date string
auto format{"%d/%m/%Y %H:%M:%S %Z"};
// ISO 8601 time format
auto format{"%FT%T%z"};
// convert the clock to a time_t
auto time_tc{std::chrono::system_clock::to_time_t(time)};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment