org-agenda-get-scheduled: Fix call to `org-time-string-to-time'

* lisp/org-agenda.el (org-agenda-get-scheduled): Do not pass timestamp
object to `org-time-string-to-time'.  Convert it to string first.

Reported-by: Carlo Tambuatco <oraclmaster@gmail.com>
Link: https://orgmode.org/list/CAJb92EzRWO6v3MRVbU0XwQomx-A1eYvFaOaBsJemB85Y4nJ1eg@mail.gmail.com
This commit is contained in:
Ihor Radchenko 2023-09-19 11:22:00 +03:00
parent 0d9efae43f
commit 6307a774a7
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -6668,7 +6668,8 @@ scheduled items with an hour specification like [h]h:mm."
(let ((deadline (time-to-days
(when (org-element-property :deadline el)
(org-time-string-to-time
(org-element-property :deadline el))))))
(org-element-interpret-data
(org-element-property :deadline el)))))))
(and (<= schedule deadline) (> current deadline))))
(`not-today pastschedp)
(`t t)