ColTypeDate: Fix countdown style width

This commit is contained in:
Dominik Rehák 2022-05-07 04:37:50 +01:00 committed by Tomas Babej
parent c3bb3810be
commit 27f3e95f12

View file

@ -89,7 +89,7 @@ void ColumnTypeDate::measure (Task& task, unsigned int& minimum, unsigned int& m
else if (_style == "countdown")
{
Datetime now;
minimum = maximum = Duration (now - date).formatVague (true).length ();
minimum = maximum = Duration (date - now).formatVague (true).length ();
}
else if (_style == "julian")
{