From 2e91eb8e9982da86840ae3875e5923a2f71a7efd Mon Sep 17 00:00:00 2001 From: Andrea Piacentini Date: Tue, 3 Sep 2024 12:03:10 +0200 Subject: [PATCH 1/2] Update ConfigOutput.cpp Fixed default date --- core/src/modules/DiagnosticOutputModule/ConfigOutput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/modules/DiagnosticOutputModule/ConfigOutput.cpp b/core/src/modules/DiagnosticOutputModule/ConfigOutput.cpp index dcbaa9467..18524194d 100644 --- a/core/src/modules/DiagnosticOutputModule/ConfigOutput.cpp +++ b/core/src/modules/DiagnosticOutputModule/ConfigOutput.cpp @@ -17,7 +17,7 @@ namespace Nextsim { const std::string ConfigOutput::all = "ALL"; -const std::string ConfigOutput::defaultLastOutput = "0-01-01T00:00:00Z"; +const std::string ConfigOutput::defaultLastOutput = "1970-01-01T00:00:00Z"; static const std::regex ncSuffix(".nc$"); From a490f34012a1b202cc742e2b6cb8f24b3ffb5447 Mon Sep 17 00:00:00 2001 From: Andrea Piacentini Date: Wed, 18 Sep 2024 01:20:25 +0200 Subject: [PATCH 2/2] Keep year 0 but on 4 digits Format for parsing the year in isodates in the default LastOutput is %Y In previous versions of std::get_time it requires 4 digits for the yyyy format --- core/src/modules/DiagnosticOutputModule/ConfigOutput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/modules/DiagnosticOutputModule/ConfigOutput.cpp b/core/src/modules/DiagnosticOutputModule/ConfigOutput.cpp index 18524194d..4f08c760d 100644 --- a/core/src/modules/DiagnosticOutputModule/ConfigOutput.cpp +++ b/core/src/modules/DiagnosticOutputModule/ConfigOutput.cpp @@ -17,7 +17,7 @@ namespace Nextsim { const std::string ConfigOutput::all = "ALL"; -const std::string ConfigOutput::defaultLastOutput = "1970-01-01T00:00:00Z"; +const std::string ConfigOutput::defaultLastOutput = "0000-01-01T00:00:00Z"; static const std::regex ncSuffix(".nc$");