From df00368f79a8383f0f36eec552deb15a79750ec5 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 3 Oct 2015 19:27:55 -0400 Subject: [PATCH] feedback: Migrated from Date to ISO8601d --- src/feedback.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/feedback.cpp b/src/feedback.cpp index 56efbc66b..27c1d56dc 100644 --- a/src/feedback.cpp +++ b/src/feedback.cpp @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include @@ -267,15 +266,11 @@ std::string renderAttribute (const std::string& name, const std::string& value, col->type () == "date" && value != "") { - Date d ((time_t)strtol (value.c_str (), NULL, 10)); + ISO8601d d ((time_t)strtol (value.c_str (), NULL, 10)); if (format == "") - { return d.toString (context.config.get ("dateformat")); - } - else - { - return d.toString (format); - } + + return d.toString (format); } return value;