mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
feedback: Migrated from ISO8601 to Datetime/Duration
This commit is contained in:
parent
cf4bd29d44
commit
26aa2761c0
1 changed files with 4 additions and 3 deletions
|
@ -33,7 +33,8 @@
|
|||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include <Context.h>
|
||||
#include <ISO8601.h>
|
||||
#include <Datetime.h>
|
||||
#include <Duration.h>
|
||||
#include <Lexer.h>
|
||||
#include <main.h>
|
||||
#include <shared.h>
|
||||
|
@ -183,7 +184,7 @@ std::string taskInfoDifferences (
|
|||
else if (name == "start")
|
||||
{
|
||||
out << format (STRING_FEEDBACK_ATT_DEL_DUR, Lexer::ucFirst (name),
|
||||
ISO8601p (current_timestamp - last_timestamp).format ())
|
||||
Duration (current_timestamp - last_timestamp).format ())
|
||||
<< "\n";
|
||||
}
|
||||
else
|
||||
|
@ -272,7 +273,7 @@ std::string renderAttribute (const std::string& name, const std::string& value,
|
|||
col->type () == "date" &&
|
||||
value != "")
|
||||
{
|
||||
ISO8601d d ((time_t)strtol (value.c_str (), NULL, 10));
|
||||
Datetime d ((time_t)strtol (value.c_str (), NULL, 10));
|
||||
if (format == "")
|
||||
return d.toString (context.config.get ("dateformat"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue