Skip to content
Snippets Groups Projects
Verified Commit b04942bb 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
(cherry picked from commit b1b8dc90)
parent 0345eb57
Branches
Tags
1 merge request!1815WIP Cherry-picks for 4.6
......@@ -219,7 +219,8 @@ Journal::printHeader()
*this << ", processors online: " << std::thread::hardware_concurrency()
<< "\n\nStart time: ";
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"
<< u8" ┌────╼ elapsed time (seconds) \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