From a40d1bbf769bbbd92738ec1d3ebae471ea68622d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 21 Sep 2011 07:34:48 -0400 Subject: [PATCH] Bug #839 - Fixed hard-coded '1m'. Must have been sleepy. --- AUTHORS | 2 +- src/Task.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index 0f1724efb..439bc991e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -110,5 +110,5 @@ suggestions: Arkady Grudzinsky Bernhard B Aikido Guy - Gour D + Gour-Gadadhara Dasa diff --git a/src/Task.cpp b/src/Task.cpp index 9083ece1d..d9784a0b4 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -311,8 +311,9 @@ void Task::parse (const std::string& input) { // Experimental legacy value translation. if (name == "recur" && - value == "1m") - value = "1mo"; + digitsOnly (value.substr (0, value.length () - 1)) && + value[value.length () - 1] == 'm') + value += 'o'; (*this)[name] = decode (json::decode (value)); }