From 1ce00aaffddc66e154893aed267fe05f06d56501 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 29 Apr 2013 09:39:35 +0200 Subject: [PATCH] ox-publish: Fix "Invalid time specification" error with timestamps in DATE * lisp/ox-publish.el (org-publish-find-date): Fix "Invalid time specification" error with timestamps in DATE. --- lisp/ox-publish.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index 194e16962..cf428d1a0 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -829,7 +829,10 @@ modification time. Return time in `current-time' format." (cond ((eq (org-element-type date) 'timestamp) (org-time-string-to-time (org-element-interpret-data 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))) (t (error "No such file: \"%s\"" file))))) -- 2.11.4.GIT