From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: ox-taskjuggler :effort: property incorrectly converted when in minutes Date: Mon, 03 Nov 2014 00:25:36 +0100 Message-ID: <87sii1famn.fsf@nicolasgoaziou.fr> References: <878ujtgqyj.fsf@nicolasgoaziou.fr> <87zjc9fbq6.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl4W2-0002F3-G0 for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 18:25:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xl4Vs-0000Uj-7k for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 18:24:58 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:34558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl4Vs-0000Uc-1m for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 18:24:48 -0500 In-Reply-To: (John Hendy's message of "Sun, 2 Nov 2014 17:07:17 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: emacs-orgmode John Hendy writes: > Thanks for the explanation. I pretty much only use duration, which has > never had an issue. As a fluke I used effort and noticed the big > difference. Thanks for illuminating the situation! Actually, I was slightly wrong. According to `org-duration-string-to-minutes' and `org-effort-durations' docstrings, Org accepts modifiers for numbers. IOW :Effort: 3d is a valid value in Org. The real problem is that "min" is not recognized as a valid modifier, since "30min" is basically the same as "30" or "0:30". I changed `org-effort-durations' default value to include "min" as a modifier, which will make your original example work. Regards,