diff --git a/dynare++/kord/journal.cc b/dynare++/kord/journal.cc index 50822a0b703d367907c77d4c8f00cf8bd7d07b5f..3ddfcef1ce66ce520b7e92753d8a843043b1f5ea 100644 --- a/dynare++/kord/journal.cc +++ b/dynare++/kord/journal.cc @@ -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"