diff --git a/src/TDB2.cpp b/src/TDB2.cpp index c251cfbb3..7ebc5620f 100644 --- a/src/TDB2.cpp +++ b/src/TDB2.cpp @@ -959,7 +959,7 @@ void TDB2::show_diff ( const std::string& prior, const std::string& when) { - ISO8601d lastChange (static_cast (std::stoul (when))); + ISO8601d lastChange (strtol (when.c_str (), NULL, 10)); // Set the colors. Color color_red (context.color () ? context.config.get ("color.undo.before") : "");