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");