Merge branch 'maint'
This commit is contained in:
commit
24aa4ab127
|
@ -829,7 +829,10 @@ modification time. Return time in `current-time' format."
|
||||||
(cond ((eq (org-element-type date) 'timestamp)
|
(cond ((eq (org-element-type date) 'timestamp)
|
||||||
(org-time-string-to-time (org-element-interpret-data date)))
|
(org-time-string-to-time (org-element-interpret-data date)))
|
||||||
((let ((ts (and (consp date) (assq 'timestamp date))))
|
((let ((ts (and (consp date) (assq 'timestamp date))))
|
||||||
(and ts (org-string-nw-p (org-element-interpret-data ts)))))
|
(and ts
|
||||||
|
(let ((value (org-element-interpret-data ts)))
|
||||||
|
(and (org-string-nw-p value)
|
||||||
|
(org-time-string-to-time value))))))
|
||||||
((file-exists-p file) (nth 5 (file-attributes file)))
|
((file-exists-p file) (nth 5 (file-attributes file)))
|
||||||
(t (error "No such file: \"%s\"" file)))))
|
(t (error "No such file: \"%s\"" file)))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue