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:
Ihor Radchenko 2023-02-04 13:46:23 +03:00
parent ec5d76bce1
commit 581df107b0
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 2 additions and 2 deletions

View File

@ -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)