From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-clock-total-time is calculated from midnight in UTC (not in current time zone) [9.1.4 (9.1.4-13-g84cb63-elpa @ /home/yantar92/.emacs.d/elpa/org-20171218/)] Date: Fri, 22 Dec 2017 19:22:54 +0100 Message-ID: <87d136k4g1.fsf@nicolasgoaziou.fr> References: <874lojv848.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> 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]:34862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eSRyH-0001zk-6B for emacs-orgmode@gnu.org; Fri, 22 Dec 2017 13:23:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eSRyG-0002Yl-1G for emacs-orgmode@gnu.org; Fri, 22 Dec 2017 13:23:01 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:41944) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eSRyF-0002XZ-RY for emacs-orgmode@gnu.org; Fri, 22 Dec 2017 13:22:59 -0500 In-Reply-To: (Allen Li's message of "Thu, 21 Dec 2017 23:35:57 -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: Allen Li Cc: emacs-orgmode@gnu.org, Ihor Radchenko Hello, Allen Li writes: > On Thu, Dec 21, 2017 at 5:55 PM, Ihor Radchenko > wrote: >> >> org-clock-in in org-clock.el calculates org-clock-total-time via calling >> (org-clock-sum-current-item (org-clock-get-sum-start)). >> However, org-clock-get-sum-start returns the time in UTC, which is not >> considered by org-clock-sum-current-time. >> >> My time zone if UTC+8 and org-clock-mode-line-total is 'today. Hence >> org-clock-total-time is gives total time starting from 8am today (which >> is midnight in UTC) instead of midnight in UTC+8. > > This sounds like a continuation of Org mode=E2=80=99s timezone issues. Indeed. This is a leftover from timezone issues. I removed it. Thank you. Regards, --=20 Nicolas Goaziou