From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Allen Li <vianchielfaura@gmail.com>
Cc: emacs-orgmode@gnu.org,
Ihor Radchenko <ihor_radchenko@mymail.sutd.edu.sg>
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 [thread overview]
Message-ID: <87d136k4g1.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAJr1M6cn9cG37Fb+AQsoiJCsKvHCsN6c_7n6WCNoCCOfAUDnYg@mail.gmail.com> (Allen Li's message of "Thu, 21 Dec 2017 23:35:57 -0800")
Hello,
Allen Li <vianchielfaura@gmail.com> writes:
> On Thu, Dec 21, 2017 at 5:55 PM, Ihor Radchenko
> <ihor_radchenko@mymail.sutd.edu.sg> 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’s timezone issues.
Indeed. This is a leftover from timezone issues. I removed it.
Thank you.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2017-12-22 18:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-22 1:55 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/)] Ihor Radchenko
2017-12-22 7:35 ` Allen Li
2017-12-22 18:22 ` Nicolas Goaziou [this message]
2017-12-22 19:42 ` Samuel Wales
2017-12-22 23:48 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d136k4g1.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=ihor_radchenko@mymail.sutd.edu.sg \
--cc=vianchielfaura@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).