From 30c81c3046e795e6d493bfe35aca01948b6b5f06 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 8 May 2016 16:37:19 -0400 Subject: [PATCH] ColTypeDate: Fixed countdown format only showing values in the past --- src/columns/ColTypeDate.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/columns/ColTypeDate.cpp b/src/columns/ColTypeDate.cpp index c46f87eca..33cdc96b3 100644 --- a/src/columns/ColTypeDate.cpp +++ b/src/columns/ColTypeDate.cpp @@ -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));