mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-06 17:37:21 +02:00
parent
d23d0fafb7
commit
5a01fe003d
2 changed files with 4 additions and 4 deletions
|
@ -88,7 +88,7 @@ void ColumnUDA::measure (Task& task, unsigned int& minimum, unsigned int& maximu
|
|||
// rc.report.<report>.dateformat
|
||||
// rc.dateformat.report
|
||||
// rc.dateformat
|
||||
ISO8601d date (static_cast <time_t> (std::stoul (value)));
|
||||
ISO8601d date ((time_t) strtol (value.c_str (), NULL, 10));
|
||||
std::string format = context.config.get ("report." + _report + ".dateformat");
|
||||
if (format == "")
|
||||
format = context.config.get ("dateformat.report");
|
||||
|
@ -151,7 +151,7 @@ void ColumnUDA::render (
|
|||
format = context.config.get ("dateformat");
|
||||
}
|
||||
|
||||
renderStringLeft (lines, width, color, ISO8601d (static_cast <time_t> (std::stoul (value))).toString (format));
|
||||
renderStringLeft (lines, width, color, ISO8601d ((time_t) strtol (value.c_str (), NULL, 10)).toString (format));
|
||||
}
|
||||
else if (_type == "duration")
|
||||
renderStringRight (lines, width, color, ISO8601p (value).format ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue