[Components] Use 24 hour format instead of 12 for log file timestamps

coverity_scan^2
David Cernat 8 years ago
parent 8bc6dfe590
commit 15ed4b8da6

@ -111,7 +111,7 @@ string Log::getFilenameTimestamp()
time_t rawtime = time(0);
struct tm *timeinfo = localtime(&rawtime);
char buffer[25];
strftime(buffer, 25, "%Y-%m-%d-%I_%M_%S", timeinfo);
strftime(buffer, 25, "%Y-%m-%d-%H_%M_%S", timeinfo);
std::string timestamp(buffer);
return timestamp;
}

Loading…
Cancel
Save