mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
rules: Migrated from ISO8601d to Datetime
This commit is contained in:
parent
c1bf321631
commit
1908d50be8
1 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@
|
|||
#include <cmake.h>
|
||||
#include <stdlib.h>
|
||||
#include <Context.h>
|
||||
#include <ISO8601.h>
|
||||
#include <Datetime.h>
|
||||
#include <shared.h>
|
||||
#include <main.h>
|
||||
|
||||
|
@ -35,7 +35,7 @@ extern Context context;
|
|||
|
||||
static std::map <std::string, Color> gsColor;
|
||||
static std::vector <std::string> gsPrecedence;
|
||||
static ISO8601d now;
|
||||
static Datetime now;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void initializeColorRules ()
|
||||
|
@ -127,7 +127,7 @@ static void colorizeActive (Task& task, const Color& base, Color& c, bool merge)
|
|||
static void colorizeScheduled (Task& task, const Color& base, Color& c, bool merge)
|
||||
{
|
||||
if (task.has ("scheduled") &&
|
||||
ISO8601d (task.get_date ("scheduled")) <= now)
|
||||
Datetime (task.get_date ("scheduled")) <= now)
|
||||
applyColor (base, c, merge);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue