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 21:49:14 -0700 Message-ID: References: <87bmknkwhe.fsf@nicolasgoaziou.fr> <87tvyfjgjk.fsf@nicolasgoaziou.fr> <87tvyelb60.fsf@gmail.com> <87shdykuxc.fsf@gmail.com> <87r2thlewz.fsf@gmail.com> <87o9oll5r8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eA7RM-00039L-SS for emacs-orgmode@gnu.org; Thu, 02 Nov 2017 00:49:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eA7RM-0000To-6R for emacs-orgmode@gnu.org; Thu, 02 Nov 2017 00:49:16 -0400 Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]:52878) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eA7RM-0000TR-0M for emacs-orgmode@gnu.org; Thu, 02 Nov 2017 00:49:16 -0400 Received: by mail-pg0-x22a.google.com with SMTP id a192so4031290pge.9 for ; Wed, 01 Nov 2017 21:49:15 -0700 (PDT) In-Reply-To: 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: Tim Cross Cc: emacs-orgmode@gnu.org, Nicolas Goaziou Sorry for the spam, but I am digging to see how deep the rabbit hole goes. All five of the first branches in org-matcher-time are wrong (again, local timezone dependent): (org-time= "<2017-11-01>" "") nil (org-time= "<2017-10-31>" "") nil (org-time= "<2017-11-02>" "") nil (org-time= "<2017-11-02>" "<+1d>") nil For my immediate bug, all that is needed is a small fix to org-time-today and modifying the call to float-time in org-matcher-time. However, there are a lot of float-time calls in Org mode, and I don't know how many of them need to be modified to return org-2ft time shifted timestamps instead of UTC Unix timestamps.