ColTypeDate: Fixed countdown format only showing values in the past

This commit is contained in:
Paul Beckingham
2016-05-08 16:37:19 -04:00
parent d27cb75ec1
commit 30c81c3046

View File

@@ -94,7 +94,6 @@ void ColumnTypeDate::measure (Task& task, unsigned int& minimum, unsigned int& m
else if (_style == "countdown") else if (_style == "countdown")
{ {
ISO8601d now; ISO8601d now;
if (now > date)
minimum = maximum = ISO8601p (now - date).formatVague ().length (); minimum = maximum = ISO8601p (now - date).formatVague ().length ();
} }
else if (_style == "julian") else if (_style == "julian")
@@ -167,7 +166,6 @@ void ColumnTypeDate::render (
else if (_style == "countdown") else if (_style == "countdown")
{ {
ISO8601d now; 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") else if (_style == "julian")