summaryrefslogtreecommitdiff
path: root/lisp/org-agenda.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/org-agenda.el')
-rw-r--r--lisp/org-agenda.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index e9a9efc..54dbeea 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5485,7 +5485,9 @@ the documentation of `org-diary'."
(org-entry-get (point) "TIMESTAMP_IA"))
ts-date-type ""))
(t (setq ts-date-type "")))
- (when ts (org-time-string-to-absolute ts))))
+ (when ts (or (ignore-errors (org-time-string-to-absolute ts))
+ ;; We skip diary sexp because `date' is not bound
+ (time-to-days nil)))))
category-pos (get-text-property (point) 'org-category-position)
txt (org-trim
(buffer-substring (match-beginning 2) (match-end 0)))