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: Tue, 31 Oct 2017 22:07:30 -0700 Message-ID: References: <87bmknkwhe.fsf@nicolasgoaziou.fr> <87tvyfjgjk.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]:38836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9lFV-000501-RP for emacs-orgmode@gnu.org; Wed, 01 Nov 2017 01:07:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9lFU-0001nB-KB for emacs-orgmode@gnu.org; Wed, 01 Nov 2017 01:07:33 -0400 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:50763) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e9lFU-0001ma-EP for emacs-orgmode@gnu.org; Wed, 01 Nov 2017 01:07:32 -0400 Received: by mail-qk0-x22f.google.com with SMTP id o187so1397596qke.7 for ; Tue, 31 Oct 2017 22:07:32 -0700 (PDT) In-Reply-To: <87tvyfjgjk.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 Tue, Oct 31, 2017 at 11:52 AM, Nicolas Goaziou wrote: > Allen Li writes: > >> Can you clarify on the issues the UTC timezone fixes? > > At the moment, I can only give you a pointer, which is commit > 97a1a498956da2e1961df5a0506df4cbb98fff52. Some other commits followed > this one in maint and master. > > You may want to check the ML for the initial bug report. Bisecting on maint shows that this regression happened at cc5a9bf538a4a7eb1b84d368336c46cead106e01 I tested using this command: find . -name "*.elc" -delete; emacs -Q --batch --eval "(add-to-list 'load-path default-directory)" --eval "(require 'org)" --eval "(princ (current-time-string (org-2ft \"<2017-10-31>\")))" I guess the relevant bug is http://lists.gnu.org/archive/html/emacs-orgmode/2017-07/msg00097.html, but oddly enough, I cannot reproduce that bug at cc5a9bf538a4a7eb1b84d368336c46cead106e01~1 >From what I can glean from the history, 112c5ba479d52c3c36de5c7aafd14ab6bc075005 is where things started to go wrong. UTC timezone was added to tests. From there, a number of commits were added to fix regressions. The problem is that the tests were made to assume UTC timezone and Org mode was changed to also use UTC timezone to make the tests pass; however, this means that org.el no longer works for non-UTC time zones. That commit's message (112c5ba479d52c3c36de5c7aafd14ab6bc075005) also seems suspect. It claims to be removing DST offset by enforcing UTC. That could only be true for people using GMT. In GMT during DST, enforcing UTC would "remove" the DST offset, but that is not true anywhere else. Given my chain of reasoning, the commits following 112c5ba479d52c3c36de5c7aafd14ab6bc075005 to fix "regressions" is really just converting all of Org mode's timestamps to use the "timezone adjusted" Unix timestamps introduced by 112c5ba479d52c3c36de5c7aafd14ab6bc075005