branch: externals-release/org commit 7470ee93a6bb232ff4cdcd57821ba3fdf322c65a Author: Kyle Meyer <k...@kyleam.com> Commit: Kyle Meyer <k...@kyleam.com>
test-org-clock: Avoid daylight saving time failure * testing/lisp/test-org-clock.el (test-org-clock/clocktable/match): Shift times away from the beginning of the day to avoid unexpected time totals due to DST changes. test-org-clock/clocktable/match fails today in the US because at 2:00 clocks jumped to 3:00, and the total time check uses the range 2:00-4:00. --- testing/lisp/test-org-clock.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/lisp/test-org-clock.el b/testing/lisp/test-org-clock.el index ccf3683..771a777 100644 --- a/testing/lisp/test-org-clock.el +++ b/testing/lisp/test-org-clock.el @@ -357,9 +357,9 @@ the buffer." |--------------+--------+------| | H1 | | 2:00 |" (org-test-with-temp-text "** H1\n\n*** H2 :tag:\n\n*** H3\n<point>" - (insert (org-test-clock-create-clock ". 1:00" ". 2:00")) + (insert (org-test-clock-create-clock ". 8:00" ". 9:00")) (goto-line 4) - (insert (org-test-clock-create-clock ". 2:00" ". 4:00")) + (insert (org-test-clock-create-clock ". 9:00" ". 11:00")) (test-org-clock-clocktable-contents ":match \"tag\" :indent nil"))))) (ert-deftest test-org-clock/clocktable/tags ()