Bugfix in the Timestamp

This commit is contained in:
Patrick Urbanke
2023-12-27 23:57:03 +01:00
parent 7de20db53e
commit de6e8ced1c
+1 -1
View File
@@ -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) +