From 61b4e36b2cbab6b9fffb8c433d5f0e9f8ed779b8 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 11 Dec 2016 23:13:27 -0500 Subject: [PATCH] CmdBurndown: Converted from ISO8601 to Duration --- src/commands/CmdBurndown.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/commands/CmdBurndown.cpp b/src/commands/CmdBurndown.cpp index ad43dd664..0bfd94475 100644 --- a/src/commands/CmdBurndown.cpp +++ b/src/commands/CmdBurndown.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -838,14 +839,14 @@ void Chart::calculateRates () rate_message << "Chart::calculateRates Net reduction is " << (_peak_count - _current_count) << " tasks in " - << ISO8601p (now.toEpoch () - _peak_epoch).format () + << Duration (now.toEpoch () - _peak_epoch).formatISO () << " = " << _net_fix_rate << " tasks/d"; context.debug (rate_message.str ()); - ISO8601p delta (static_cast (_current_count / fix_rate)); - ISO8601d end = now + delta; + Duration delta (static_cast (_current_count / fix_rate)); + ISO8601d end = now + delta.toTime_t (); // Prefer dateformat.report over dateformat. std::string format = context.config.get ("dateformat.report");