diff --git a/src/feedback.cpp b/src/feedback.cpp index 9317f4eba..9e2862825 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 (static_cast (std::stoul (value))); + ISO8601d d ((time_t)strtol (value.c_str (), NULL, 10)); if (format == "") return d.toString (context.config.get ("dateformat"));