mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 00:26:19 +08:00
Bugfix in the Timestamp
This commit is contained in:
@@ -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) +
|
||||
|
||||
Reference in New Issue
Block a user