TW-306
- TW-306 Wrong date format in burndown view (thanks to Michele Santullo).
This commit is contained in:
@@ -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 ()
|
||||
+ ")";
|
||||
|
||||
Reference in New Issue
Block a user