mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
ColTypeDate: Fixed countdown format only showing values in the past
This commit is contained in:
parent
f29583d81d
commit
038126d59c
1 changed files with 2 additions and 4 deletions
|
@ -94,8 +94,7 @@ void ColumnTypeDate::measure (Task& task, unsigned int& minimum, unsigned int& m
|
|||
else if (_style == "countdown")
|
||||
{
|
||||
ISO8601d now;
|
||||
if (now > date)
|
||||
minimum = maximum = ISO8601p (now - date).formatVague ().length ();
|
||||
minimum = maximum = ISO8601p (now - date).formatVague ().length ();
|
||||
}
|
||||
else if (_style == "julian")
|
||||
{
|
||||
|
@ -167,8 +166,7 @@ void ColumnTypeDate::render (
|
|||
else if (_style == "countdown")
|
||||
{
|
||||
ISO8601d now;
|
||||
if (now > date)
|
||||
renderStringRight (lines, width, color, ISO8601p (now - date).formatVague ());
|
||||
renderStringRight (lines, width, color, ISO8601p (now - date).formatVague ());
|
||||
}
|
||||
else if (_style == "julian")
|
||||
renderStringRight (lines, width, color, format (date.toJulian (), 13, 12));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue