From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Eure Subject: Bug: Adding duration which spans days produces invalid timestamps & confusing errors [9.1.13 (9.1.13-elpa @ /home/ieure/.emacs.d/elpa/org-9.1.13/)] Date: Wed, 16 May 2018 07:18:04 -0700 Message-ID: <87wow3ofab.fsf@retrospec.tv> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ2hZ-0000Lz-Gj for emacs-orgmode@gnu.org; Wed, 16 May 2018 16:07:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ2hW-0006eP-60 for emacs-orgmode@gnu.org; Wed, 16 May 2018 16:07:09 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:46703) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fJ2hV-0006MC-S3 for emacs-orgmode@gnu.org; Wed, 16 May 2018 16:07:06 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 414F120FD4 for ; Wed, 16 May 2018 16:07:03 -0400 (EDT) Received: from tau.retrospec.tv (unknown [66.193.132.4]) by mail.messagingengine.com (Postfix) with ESMTPA id 905CFE5097 for ; Wed, 16 May 2018 16:07:02 -0400 (EDT) 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" To: emacs-orgmode@gnu.org Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ I spent far too long figuring out why I was getting this error when I pulled up my week agenda with C-c a a org-duration-to-minutes: Invalid duration format: "+2:00" The string "+2:00" doesn=E2=80=99t appear anywhere in my org files. After bisecting the list of files, then the contents of the one that was causing issues, I found that it was due to this timestamp: <2018-05-16 Wed 22:00-26:00> There are only 24 hours in the day, but this says 26. Oops. This surprised me, because this had been created by doing: C-c . 22:00+4 I use this shortcut a lot, since it=E2=80=99s easier for me to think about = the duration rather than do the mental math to come up with the ending hour. I=E2=80=99m not sure it=E2=80=99s a good idea to insert a span timestamp in= this case, but I think at a minimum, Org ought to error in this case, rather than producing a timestamp it can=E2=80=99t consume. It would also be good if the error was clearer, ideally telling you the exact file/line the erroneous timestamp was on. Emacs : GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-05-07, modified by Debian Package: Org mode version 9.1.13 (9.1.13-elpa @ /home/ieure/.emacs.d/elpa/o= rg-9.1.13/)