Feedback: Converted from strtol to std::stoul

This commit is contained in:
Paul Beckingham 2015-11-01 22:09:01 -05:00
parent 02f1fa371c
commit 8f60b1f9c5

View file

@ -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 <time_t> (std::stoul (value)));
if (format == "")
return d.toString (context.config.get ("dateformat"));