diff --git a/src/feedback.cpp b/src/feedback.cpp index 9e2862825..9317f4eba 100644 --- a/src/feedback.cpp +++ b/src/feedback.cpp @@ -267,7 +267,7 @@ std::string renderAttribute (const std::string& name, const std::string& value, col->type () == "date" && value != "") { - ISO8601d d ((time_t)strtol (value.c_str (), NULL, 10)); + ISO8601d d (static_cast (std::stoul (value))); if (format == "") return d.toString (context.config.get ("dateformat"));