rules: Migrated from Date to ISO8601d

This commit is contained in:
Paul Beckingham 2015-10-03 19:28:09 -04:00
parent df00368f79
commit 709e871061

View file

@ -27,7 +27,7 @@
#include <cmake.h> #include <cmake.h>
#include <stdlib.h> #include <stdlib.h>
#include <Context.h> #include <Context.h>
#include <Date.h> #include <ISO8601.h>
#include <text.h> #include <text.h>
#include <util.h> #include <util.h>
#include <main.h> #include <main.h>
@ -36,7 +36,7 @@ extern Context context;
static std::map <std::string, Color> gsColor; static std::map <std::string, Color> gsColor;
static std::vector <std::string> gsPrecedence; static std::vector <std::string> gsPrecedence;
static Date now; static ISO8601d now;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void initializeColorRules () void initializeColorRules ()
@ -130,7 +130,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) static void colorizeScheduled (Task& task, const Color& base, Color& c, bool merge)
{ {
if (task.has ("scheduled") && if (task.has ("scheduled") &&
Date (task.get_date ("scheduled")) <= now) ISO8601d (task.get_date ("scheduled")) <= now)
applyColor (base, c, merge); applyColor (base, c, merge);
} }