From 8f60b1f9c52da01d8f3c835ee5c1f1b42f01c45c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 1 Nov 2015 22:09:01 -0500 Subject: [PATCH] Feedback: Converted from strtol to std::stoul --- src/feedback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"));