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 <ihor_radchenko@mymail.sutd.edu.sg> <http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00499.html>
This commit is contained in:
parent
4f3fc9cb20
commit
bac8d25441
|
@ -1456,8 +1456,7 @@ The time is always returned as UTC."
|
||||||
(day (nth 3 dt)))
|
(day (nth 3 dt)))
|
||||||
(if (< hour org-extend-today-until) (setf (nth 3 dt) (1- day)))
|
(if (< hour org-extend-today-until) (setf (nth 3 dt) (1- day)))
|
||||||
(setf (nth 2 dt) org-extend-today-until)
|
(setf (nth 2 dt) org-extend-today-until)
|
||||||
(setq dt (append (list 0 0) (nthcdr 2 dt) '(t)))
|
(apply #'encode-time (append (list 0 0) (nthcdr 2 dt)))))
|
||||||
(apply #'encode-time dt)))
|
|
||||||
((or (equal cmt "all")
|
((or (equal cmt "all")
|
||||||
(and (or (not cmt) (equal cmt "auto"))
|
(and (or (not cmt) (equal cmt "auto"))
|
||||||
(not lr)))
|
(not lr)))
|
||||||
|
|
Loading…
Reference in New Issue