From 32cbe7a049bc202b9b27b6042ef6fa949e59e950 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 26 Jun 2011 23:45:17 -0400 Subject: [PATCH] Bug - rc.default.due needs to be converted to an epoch before storage. --- src/commands/Command.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/Command.cpp b/src/commands/Command.cpp index 2cbd13559..6d237a761 100644 --- a/src/commands/Command.cpp +++ b/src/commands/Command.cpp @@ -295,6 +295,8 @@ void Command::modify_task (Task& task, Arguments& arguments) std::string value; Arguments::extract_attr (arg->first, name, value); + // TODO All 'value's must be eval'd first. + // Dependencies must be resolved to UUIDs. if (name == "depends") { @@ -412,7 +414,8 @@ void Command::apply_defaults (Task& task) std::string defaultDue = context.config.get ("default.due"); if (defaultDue != "" && context.columns["due"]->validate (defaultDue)) - task.set ("due", defaultDue); + // TODO Determine whether this could/should be eval'd first. + task.set ("due", Date (defaultDue).toEpoch ()); } }