From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Li 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: Thu, 21 Dec 2017 23:35:57 -0800 Message-ID: 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]:57406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eSHs8-0005lS-MG for emacs-orgmode@gnu.org; Fri, 22 Dec 2017 02:36:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eSHs7-0007YK-HN for emacs-orgmode@gnu.org; Fri, 22 Dec 2017 02:36:00 -0500 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:38752) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eSHs7-0007Xf-D1 for emacs-orgmode@gnu.org; Fri, 22 Dec 2017 02:35:59 -0500 Received: by mail-qk0-x22f.google.com with SMTP id i190so13435492qka.5 for ; Thu, 21 Dec 2017 23:35:58 -0800 (PST) In-Reply-To: <874lojv848.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> 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: Ihor Radchenko Cc: emacs-orgmode@gnu.org 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. The original thread (which is long-winded): http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00000.html http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00027.html The second bug, also timezone issues: http://lists.gnu.org/archive/html/emacs-orgmode/2017-12/msg00039.html