From da9bd8faa9079e21438fb41695974fba6f03c58b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 12 Jul 2012 00:14:23 -0400 Subject: [PATCH] UDA - Only 'recur' durations are stored in raw form. All others resolve to seconds. Thanks to Uli Martens. --- src/commands/Command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/Command.cpp b/src/commands/Command.cpp index 13439e943..00f2b7c0a 100644 --- a/src/commands/Command.cpp +++ b/src/commands/Command.cpp @@ -574,7 +574,7 @@ void Command::modify_task ( // Deliberately storing the 'raw' value, which is necessary for // durations like 'weekday'.. - task.set (name, value); + task.set (name, name == "recur" ? value : result); } // Need handling for numeric types, used by UDAs.