From bac8d25441448d69764d55624f1ee21da28157a7 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 22 Dec 2017 19:19:49 +0100 Subject: [PATCH] org-clock: Fix timezone in `org-clock-get-sum-start' * lisp/org-clock.el (org-clock-get-sum-start): Remove timezone argument from `encode-time'. Reported-by: Ihor Radchenko --- lisp/org-clock.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 0e7eb2149..a1a5996d9 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1456,8 +1456,7 @@ The time is always returned as UTC." (day (nth 3 dt))) (if (< hour org-extend-today-until) (setf (nth 3 dt) (1- day))) (setf (nth 2 dt) org-extend-today-until) - (setq dt (append (list 0 0) (nthcdr 2 dt) '(t))) - (apply #'encode-time dt))) + (apply #'encode-time (append (list 0 0) (nthcdr 2 dt))))) ((or (equal cmt "all") (and (or (not cmt) (equal cmt "auto")) (not lr)))