From 26aa2761c01ff4d432ac4f585f7ff7044a8c502d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 11 Dec 2016 21:39:27 -0500 Subject: [PATCH] feedback: Migrated from ISO8601 to Datetime/Duration --- src/feedback.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/feedback.cpp b/src/feedback.cpp index 3a96f473d..bbb9e057b 100644 --- a/src/feedback.cpp +++ b/src/feedback.cpp @@ -33,7 +33,8 @@ #include #include #include -#include +#include +#include #include #include #include @@ -183,7 +184,7 @@ std::string taskInfoDifferences ( else if (name == "start") { out << format (STRING_FEEDBACK_ATT_DEL_DUR, Lexer::ucFirst (name), - ISO8601p (current_timestamp - last_timestamp).format ()) + Duration (current_timestamp - last_timestamp).format ()) << "\n"; } else @@ -272,7 +273,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)); + Datetime d ((time_t)strtol (value.c_str (), NULL, 10)); if (format == "") return d.toString (context.config.get ("dateformat"));