mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
ColRecur: Converted from ISO8601 to Duration
This commit is contained in:
parent
cb82795d86
commit
4c2fff1b39
1 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@
|
|||
#include <cmake.h>
|
||||
#include <ColRecur.h>
|
||||
#include <Context.h>
|
||||
#include <ISO8601.h>
|
||||
#include <Duration.h>
|
||||
#include <Eval.h>
|
||||
#include <Variant.h>
|
||||
#include <Lexer.h>
|
||||
|
@ -73,7 +73,7 @@ void ColumnRecur::measure (Task& task, unsigned int& minimum, unsigned int& maxi
|
|||
if (_style == "default" ||
|
||||
_style == "duration")
|
||||
{
|
||||
minimum = maximum = ISO8601p (task.get ("recur")).format ().length ();
|
||||
minimum = maximum = Duration (task.get ("recur")).formatISO ().length ();
|
||||
}
|
||||
else if (_style == "indicator")
|
||||
{
|
||||
|
@ -98,7 +98,7 @@ void ColumnRecur::render (
|
|||
{
|
||||
if (_style == "default" ||
|
||||
_style == "duration")
|
||||
renderStringRight (lines, width, color, ISO8601p (task.get ("recur")).format ());
|
||||
renderStringRight (lines, width, color, Duration (task.get ("recur")).formatISO ());
|
||||
|
||||
else if (_style == "indicator")
|
||||
renderStringRight (lines, width, color, context.config.get ("recurrence.indicator"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue