From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: test-org-colview.el: Fix an expected result in test-org-colview/columns-summary Date: Wed, 14 Jun 2017 11:42:03 +0200 Message-ID: <87injykis4.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL4oR-0006nH-Uh for emacs-orgmode@gnu.org; Wed, 14 Jun 2017 05:42:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL4oR-00037Z-93 for emacs-orgmode@gnu.org; Wed, 14 Jun 2017 05:42:08 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:59477) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dL4oR-00037L-2g for emacs-orgmode@gnu.org; Wed, 14 Jun 2017 05:42:07 -0400 In-Reply-To: (hunglun o.'s message of "Tue, 13 Jun 2017 21:36:40 +0800") 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: hunglun o Cc: emacs-orgmode@gnu.org Hello, hunglun o writes: > This test sets 2014-03-04 to be current-time and then computes the > number of days between current-time and 2012-03-29. 705 days should be > expected. However, 705d 1h is given in the test case. This is a bit more complicated. The "1h" comes from daylight saving time, which your time zone probably ignores. So applying your fix solve your issue and break it elsewhere. I add an optional ZONE argument to `org-parse-time-string' to solve this. Unfortunately, ZONE is not supported by `decode-time' in Emacs 24. So, at the moment, `org-parse-time-string' is slightly broken on older Emacsen. Regards, -- Nicolas Goaziou