mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdStats: Migrated from Date to ISO8601d
This commit is contained in:
parent
69c8125ea7
commit
4002778a36
1 changed files with 3 additions and 4 deletions
|
@ -29,7 +29,6 @@
|
|||
#include <iomanip>
|
||||
#include <stdlib.h>
|
||||
#include <ViewText.h>
|
||||
#include <Date.h>
|
||||
#include <ISO8601.h>
|
||||
#include <Context.h>
|
||||
#include <Filter.h>
|
||||
|
@ -91,7 +90,7 @@ int CmdStats::execute (std::string& output)
|
|||
std::vector <Task> filtered;
|
||||
filter.subset (all, filtered);
|
||||
|
||||
Date now;
|
||||
ISO8601d now;
|
||||
time_t earliest = time (NULL);
|
||||
time_t latest = 1;
|
||||
int totalT = 0;
|
||||
|
@ -236,12 +235,12 @@ int CmdStats::execute (std::string& output)
|
|||
|
||||
if (filtered.size ())
|
||||
{
|
||||
Date e (earliest);
|
||||
ISO8601d e (earliest);
|
||||
row = view.addRow ();
|
||||
view.set (row, 0, STRING_CMD_STATS_OLDEST);
|
||||
view.set (row, 1, e.toString (dateformat));
|
||||
|
||||
Date l (latest);
|
||||
ISO8601d l (latest);
|
||||
row = view.addRow ();
|
||||
view.set (row, 0, STRING_CMD_STATS_NEWEST);
|
||||
view.set (row, 1, l.toString (dateformat));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue