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

Dynare++: (really) avoid locale-specific strings in the journal under Windows

Closes: #1751
(cherry picked from commit 233b242a)
parent 24b0fed6
No related branches found
No related tags found
No related merge requests found
......@@ -220,7 +220,14 @@ Journal::printHeader()
<< "\n\nStart time: ";
std::time_t t = std::time(nullptr);
// NB: in the date/time string, we avoid using locale-specific strings (#1751)
*this << std::put_time(std::localtime(&t), "%F %T %z")
*this << std::put_time(std::localtime(&t),
#ifndef _WIN32
"%F %T %z"
#else
// Specifiers introduced in C++11 don’t work under Windows…
"%Y-%m-%d %H:%M:%S"
#endif
)
<< "\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