[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] test-org-colview.el: Fix an expected result in test-org-colview/
From: |
Nicolas Goaziou |
Subject: |
Re: [O] test-org-colview.el: Fix an expected result in test-org-colview/columns-summary |
Date: |
Wed, 14 Jun 2017 11:42:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hello,
hunglun o <address@hidden> 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