From d2fe09310756e956f83a10747ccc52bcfda82f97 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 11 Aug 2010 01:30:16 +0000 Subject: [PATCH] Unit Tests - Fixed problem with determination of 'due today', which should have used Date::sameDay, but was based on old midnight dates. --- src/recur.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/recur.cpp b/src/recur.cpp index fc1adad6a..d55057099 100644 --- a/src/recur.cpp +++ b/src/recur.cpp @@ -396,7 +396,7 @@ int getDueState (const std::string& due) if (dt < rightNow) return 3; - if (dt == thisDay) + if (rightNow.sameDay (dt)) return 2; int imminentperiod = context.config.getInteger ("due");