Skip to content
Snippets Groups Projects
Verified Commit b1b8dc90 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Dynare++: avoid locale-specific strings when printing date/time in the journal

Closes: #1751
parent f104b9d5
Branches
No related tags found
No related merge requests found
...@@ -219,7 +219,8 @@ Journal::printHeader() ...@@ -219,7 +219,8 @@ Journal::printHeader()
*this << ", processors online: " << std::thread::hardware_concurrency() *this << ", processors online: " << std::thread::hardware_concurrency()
<< "\n\nStart time: "; << "\n\nStart time: ";
std::time_t t = std::time(nullptr); std::time_t t = std::time(nullptr);
*this << std::put_time(std::localtime(&t), "%c %Z") // NB: in the date/time string, we avoid using locale-specific strings (#1751)
*this << std::put_time(std::localtime(&t), "%F %T %z")
<< "\n\n" << "\n\n"
<< u8" ┌────╼ elapsed time (seconds) \n" << u8" ┌────╼ elapsed time (seconds) \n"
<< u8" │ ┌────╼ record unique identifier \n" << u8" │ ┌────╼ record unique identifier \n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment