From b1b8dc90a38a10c1a61f9370b3edbc3adb08c15f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 18 Nov 2020 17:30:38 +0100
Subject: [PATCH] Dynare++: avoid locale-specific strings when printing
 date/time in the journal

Closes: #1751
---
 dynare++/kord/journal.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dynare++/kord/journal.cc b/dynare++/kord/journal.cc
index b8eaabd473..c991b02e30 100644
--- a/dynare++/kord/journal.cc
+++ b/dynare++/kord/journal.cc
@@ -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"
-- 
GitLab