From 4c8456a86d77f829ddb094e026bfcc77421fd45b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 17 Dec 2016 21:22:31 -0500 Subject: [PATCH] TDB2: Migrated from ISO8601d to Datetime --- src/TDB2.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/TDB2.cpp b/src/TDB2.cpp index 69790c5c6..1961a8e9f 100644 --- a/src/TDB2.cpp +++ b/src/TDB2.cpp @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include #include @@ -348,7 +348,7 @@ Task TF2::load_task (const std::string& line) // or needs to be 'woken'. void TF2::load_gc (Task& task) { - ISO8601d now; + Datetime now; std::string status = task.get ("status"); if (status == "pending" || @@ -358,7 +358,7 @@ void TF2::load_gc (Task& task) } else if (status == "waiting") { - ISO8601d wait (task.get_date ("wait")); + Datetime wait (task.get_date ("wait")); if (wait < now) { task.set ("status", "pending"); @@ -709,7 +709,7 @@ void TDB2::update ( // old // new // --- - undo.add_line ("time " + ISO8601d ().toEpochString () + '\n'); + undo.add_line ("time " + Datetime ().toEpochString () + '\n'); undo.add_line ("old " + original.composeF4 () + '\n'); undo.add_line ("new " + task.composeF4 () + '\n'); undo.add_line ("---\n"); @@ -728,7 +728,7 @@ void TDB2::update ( // time