From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Li Subject: Re: Bug: org-2ft and/or float-time is wrong [9.1.2 (9.1.2-22-ga2a034-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20171023/)] Date: Wed, 1 Nov 2017 17:10:21 -0700 Message-ID: References: <87bmknkwhe.fsf@nicolasgoaziou.fr> <87tvyfjgjk.fsf@nicolasgoaziou.fr> <87bmkl1zy9.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eA35U-0007Ag-Gn for emacs-orgmode@gnu.org; Wed, 01 Nov 2017 20:10:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eA35T-0002FB-3g for emacs-orgmode@gnu.org; Wed, 01 Nov 2017 20:10:24 -0400 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]:51403) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eA35S-0002Ec-Pj for emacs-orgmode@gnu.org; Wed, 01 Nov 2017 20:10:22 -0400 Received: by mail-qk0-x236.google.com with SMTP id 17so4842344qkq.8 for ; Wed, 01 Nov 2017 17:10:22 -0700 (PDT) In-Reply-To: <87bmkl1zy9.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On Wed, Nov 1, 2017 at 1:55 PM, Nicolas Goaziou wrote: > > IIRC, the point is to remove DST in durations, i.e., in the difference > between two dates. One way to do that is to assume UTC in both start end > end date. Most of the commits are about making sure UTC is used whenever > two Org dates are to be used in a duration computation, and nowhere > else. Alas, I still can't seem to find the original DST bug. I'm not sure using UTC solves DST problems. For example, in the timezone America/Los_Angeles, <2017-11-05 01:00:00> -> <2017-11-05 04:00:00> = 4 hours <2017-10-10 01:00:00> -> <2017-10-10 04:00:00> = 3 hours <2017-03-12 01:00:00> -> <2017-03-12 04:00:00> = 2 hour This is what Emacs gives me using the default time zone <2017-11-05 01:00:00> -> <2017-11-05 04:00:00> = 4 hours <2017-10-10 01:00:00> -> <2017-10-10 04:00:00> = 3 hours <2017-03-12 01:00:00> -> <2017-03-12 04:00:00> = 2 hour This is what Emacs gives me using UTC <2017-11-05 01:00:00> -> <2017-11-05 04:00:00> = 3 hours <2017-10-10 01:00:00> -> <2017-10-10 04:00:00> = 3 hours <2017-03-12 01:00:00> -> <2017-03-12 04:00:00> = 3 hours Using UTC seems strictly wrong to me. > > I think the change to org-2ft was a side-effect, since it is indirectly > used is a duration. > > Regards, > > -- > Nicolas Goaziou 0x80A93738