From de6e8ced1c88c785c24bef13e66a14ea3fe79136 Mon Sep 17 00:00:00 2001 From: Patrick Urbanke Date: Wed, 27 Dec 2023 23:57:03 +0100 Subject: [PATCH] Bugfix in the Timestamp --- include/rfl/Timestamp.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rfl/Timestamp.hpp b/include/rfl/Timestamp.hpp index ac8c8622..c7430caa 100644 --- a/include/rfl/Timestamp.hpp +++ b/include/rfl/Timestamp.hpp @@ -25,7 +25,7 @@ class Timestamp { using ReflectionType = std::string; - Timestamp(const char* _str) { + Timestamp(const char* _str) : tm_(std::tm{}) { const auto r = strptime(_str, _format.str().c_str(), &tm_); if (r == NULL) { throw std::runtime_error("String '" + std::string(_str) +