forked from mirrors/org-mode
org-clock-sum: Fix Emacs 26 compatibility after 2e901ed23
* lisp/org-clock.el (org-clock-sum): Use backwards-compatible `org-encode-time'.
This commit is contained in:
parent
ec5d76bce1
commit
581df107b0
|
@ -1939,7 +1939,7 @@ PROPNAME lets you set a custom text property instead of :org-clock-minutes."
|
|||
;; Two time stamps.
|
||||
(let* ((timestamp (org-element-property :value element))
|
||||
(ts (float-time
|
||||
(encode-time
|
||||
(org-encode-time
|
||||
(list 0
|
||||
(org-element-property :minute-start timestamp)
|
||||
(org-element-property :hour-start timestamp)
|
||||
|
@ -1948,7 +1948,7 @@ PROPNAME lets you set a custom text property instead of :org-clock-minutes."
|
|||
(org-element-property :year-start timestamp)
|
||||
nil -1 nil))))
|
||||
(te (float-time
|
||||
(encode-time
|
||||
(org-encode-time
|
||||
(list 0
|
||||
(org-element-property :minute-end timestamp)
|
||||
(org-element-property :hour-end timestamp)
|
||||
|
|
Loading…
Reference in New Issue