mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 18:50:39 +02:00
feedback: Migrated from Date to ISO8601d
This commit is contained in:
parent
b085006d1a
commit
df00368f79
1 changed files with 3 additions and 8 deletions
|
@ -33,7 +33,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include <Context.h>
|
||||
#include <Date.h>
|
||||
#include <ISO8601.h>
|
||||
#include <main.h>
|
||||
#include <text.h>
|
||||
|
@ -267,15 +266,11 @@ std::string renderAttribute (const std::string& name, const std::string& value,
|
|||
col->type () == "date" &&
|
||||
value != "")
|
||||
{
|
||||
Date d ((time_t)strtol (value.c_str (), NULL, 10));
|
||||
ISO8601d d ((time_t)strtol (value.c_str (), NULL, 10));
|
||||
if (format == "")
|
||||
{
|
||||
return d.toString (context.config.get ("dateformat"));
|
||||
}
|
||||
else
|
||||
{
|
||||
return d.toString (format);
|
||||
}
|
||||
|
||||
return d.toString (format);
|
||||
}
|
||||
|
||||
return value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue