mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-306
- TW-306 Wrong date format in burndown view (thanks to Michele Santullo).
This commit is contained in:
parent
ac45f263d8
commit
fe0d03664c
2 changed files with 7 additions and 1 deletions
|
@ -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 ()
|
||||
+ ")";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue