From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Clock/Time summaries don't work across years [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)] Date: Sun, 28 Apr 2019 21:24:13 +0200 Message-ID: <87zhoaexwi.fsf@nicolasgoaziou.fr> References: <5c12abdf-2fbf-8dd1-b1bf-90a74dd89294@qq.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKpWP-0005qW-Hg for emacs-orgmode@gnu.org; Sun, 28 Apr 2019 15:31:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKpPQ-0006t1-FP for emacs-orgmode@gnu.org; Sun, 28 Apr 2019 15:24:21 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:52865) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKpPQ-0006l0-9p for emacs-orgmode@gnu.org; Sun, 28 Apr 2019 15:24:20 -0400 In-Reply-To: <5c12abdf-2fbf-8dd1-b1bf-90a74dd89294@qq.com>+37D410353903B084 (George Kontsevich's message of "Fri, 26 Apr 2019 15:46:29 +0800") 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: George Kontsevich Cc: emacs-orgmode@gnu.org Hello, George Kontsevich writes: > There is a rather serious bug with the Clocking feature in Org-mode > > If you have a Org section that looks like this > > * Test > =C2=A0 CLOCK: [2019-01-02 Wed 10:06]--[2019-01-02 Wed 11:06] =3D>=C2=A0 1= :00 > =C2=A0hello > =C2=A0 CLOCK: [2019-01-02 Tue 10:06]--[2019-01-02 Tue 11:06] =3D>=C2=A0 1= :00 > =C2=A0hi > > > And then you hit C-c C-x C-d you will get a clock total of two hour. If > you change one of them to be a different year - for instance: > > > * Test > =C2=A0 CLOCK: [2019-01-02 Wed 10:06]--[2019-01-02 Wed 11:06] =3D>=C2=A0 1= :00 > =C2=A0hello > =C2=A0 CLOCK: [2018-12-11 Tue 15:10]--[2018-12-11 Tue 16:45] =3D>=C2=A0 1= :35 > =C2=A0hi > > > Then the total shows up at just one hour! > > Fortunately I noticed this bug before I submitted incorrect timesheet > totals to my employer :) See `org-clock-display-default-range'. Regards, --=20 Nicolas Goaziou