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