- TW-306 Wrong date format in burndown view (thanks to Michele Santullo).
This commit is contained in:
Paul Beckingham 2014-04-13 10:34:17 -04:00
parent ac45f263d8
commit fe0d03664c
2 changed files with 7 additions and 1 deletions

View file

@ -936,7 +936,12 @@ void Chart::calculateRates (std::vector <time_t>& sequence)
OldDuration delta (remaining_days * 86400);
now += delta;
_completion = now.toString (context.config.get ("dateformat"))
// Prefer dateformat.report over dateformat.
std::string format = context.config.get ("dateformat.report");
if (format == "")
format = context.config.get ("dateformat");
_completion = now.toString (format)
+ " ("
+ delta.format ()
+ ")";