From mboxrd@z Thu Jan 1 00:00:00 1970 From: 'Ihor Radchenko' Subject: Bug: Agenda fails to parse time interval like 23:00-29:00 [9.1.9 (release_9.1.9-65-g5e4542 @ /home/yantar92/.emacs.d/straight/build/org/)] Date: Mon, 02 Dec 2019 10:49:45 +0800 Message-ID: <87eexnxwza.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34283) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibboH-0000rx-Jw for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 21:51:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibboG-00045B-Aj for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 21:51:37 -0500 Received: from mail-yw1-xc2b.google.com ([2607:f8b0:4864:20::c2b]:44100) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ibboG-00044s-4q for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 21:51:36 -0500 Received: by mail-yw1-xc2b.google.com with SMTP id t141so669831ywc.11 for ; Sun, 01 Dec 2019 18:51:35 -0800 (PST) Received: from localhost ([5.226.137.4]) by smtp.gmail.com with ESMTPSA id a74sm5823918ywe.42.2019.12.01.18.51.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Dec 2019 18:51:33 -0800 (PST) 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 I have one scheduled item like the following: * test <2019-12-05 Thu 23:00-29:00> This kind of item fails to be parsed by agenda because of incorrect treatment of 23:00-29:00 time interval Specifically, calling (org-agenda-format-item nil #("test" 0 3 (face org-level-1 org-category "schedule" fontified t)) " " "schedule" nil #("<2019-12-02 Mon 23:00-29:00>" ... ) ...) yields (org-get-time-of-day "29:00" 'string t) -> "+5:00", which is then passed to (org-duration-to-minutes "+5:00"), resulting in error. Regards, Ihor Emacs : GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0) of 2019-11-25 Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /home/yantar92/.emacs.d/straight/build/org/)