mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ColUDA: Duration replaced by ISO8601p
This commit is contained in:
parent
15e0fa5286
commit
3563aa8414
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include <cmake.h>
|
#include <cmake.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <Duration.h>
|
#include <ISO8601.h>
|
||||||
#include <Date.h>
|
#include <Date.h>
|
||||||
#include <ColUDA.h>
|
#include <ColUDA.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
|
@ -100,7 +100,7 @@ void ColumnUDA::measure (Task& task, unsigned int& minimum, unsigned int& maximu
|
||||||
}
|
}
|
||||||
else if (_type == "duration")
|
else if (_type == "duration")
|
||||||
{
|
{
|
||||||
minimum = maximum = utf8_width (Duration (value).formatISO ());
|
minimum = maximum = utf8_width (ISO8601p (value).format ());
|
||||||
}
|
}
|
||||||
else if (_type == "string")
|
else if (_type == "string")
|
||||||
{
|
{
|
||||||
|
@ -161,7 +161,7 @@ void ColumnUDA::render (
|
||||||
lines.push_back (
|
lines.push_back (
|
||||||
color.colorize (
|
color.colorize (
|
||||||
rightJustify (
|
rightJustify (
|
||||||
Duration (value).formatISO (),
|
ISO8601p (value).format (),
|
||||||
width)));
|
width)));
|
||||||
}
|
}
|
||||||
else if (_type == "string")
|
else if (_type == "string")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue