From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Moller-Mara Subject: Bug: org-clock-sum-current-item/org-clock-get-sum-start not respecting LAST_REPEAT [9.0.9 (release_9.0.9-697-gb0776e @ /usr/local/share/emacs/site-lisp/org/)] Date: Fri, 04 Aug 2017 12:16:45 +0800 Message-ID: <877eykj7bm.fsf@cns.nyu.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddU2g-0006Wb-5q for emacs-orgmode@gnu.org; Fri, 04 Aug 2017 00:16:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddU2d-0004us-16 for emacs-orgmode@gnu.org; Fri, 04 Aug 2017 00:16:54 -0400 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:36364) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddU2c-0004t9-QC for emacs-orgmode@gnu.org; Fri, 04 Aug 2017 00:16:50 -0400 Received: by mail-pf0-x22a.google.com with SMTP id c28so2320529pfe.3 for ; Thu, 03 Aug 2017 21:16:50 -0700 (PDT) Received: from simulacron (PLACEHOLDER-202-66-60-172.NATPOOL.NYU.EDU. [202.66.60.172]) by smtp.gmail.com with ESMTPSA id d3sm612139pgf.75.2017.08.03.21.16.47 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Aug 2017 21:16:47 -0700 (PDT) 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 Hey there, Recently I've found that clocking in to a repeating task is giving me an incorrect "task time since last repeat". Normally, when I clock into a task, mark it as done, and clock in again, I expect the starting clock time to be 0. In this example: * TODO Stuff SCHEDULED: <2017-08-04 Fri +1d> :PROPERTIES: :LAST_REPEAT: [2017-07-12 Wed 20:02] :END: :LOGBOOK: - State "DONE" from "TODO" [2017-07-12 Wed 20:02] CLOCK: [2017-07-12 Wed 19:54]--[2017-07-12 Wed 20:02] => 0:08 - State "DONE" from "TODO" [2017-07-08 Sat 19:14] CLOCK: [2017-07-08 Sat 18:49]--[2017-07-08 Sat 19:14] => 0:25 - State "DONE" from "TODO" [2017-06-05 Mon 15:14] CLOCK: [2017-06-05 Mon 14:48]--[2017-06-05 Mon 15:14] => 0:26 :END: clocking in reports that I've spent 8 minutes on the item already, even though that happened before the LAST_REPEAT. When looking at (org-clock-sum-current-item (org-clock-get-sum-start)) I'm getting "8" when I should get "0". This change seems to have started happening after commit 112c5ba47, which changed org-clock-sum to do something different with daylights savings. I'm currently using Emacs : GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.5) of 2017-01-18 Package: Org mode version 9.0.9 (release_9.0.9-697-gb0776e @ /usr/local/share/emacs/site-lisp/org/) Best, Josh