瀏覽代碼

contrib/lisp/ox-rss.el: Enhance RFC822 formatting string

* contrib/lisp/ox-rss.el (org-rss-headline)
(org-rss-build-channel-info): Use %b instead of %h for RFC822
dates.

Thanks to Andrea Rossetti for reporting this.
Bastien Guerry 11 年之前
父節點
當前提交
08d93aa2d5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      contrib/lisp/ox-rss.el

+ 2 - 2
contrib/lisp/ox-rss.el

@@ -236,7 +236,7 @@ communication channel."
 	   (pubdate
 	    (let ((system-time-locale "C"))
 	      (format-time-string
-	       "%a, %d %h %Y %H:%M:%S %z"
+	       "%a, %d %b %Y %H:%M:%S %z"
 	       (org-time-string-to-time
 		(or (org-element-property :PUBDATE headline)
 		    (error "Missing PUBDATE property"))))))
@@ -308,7 +308,7 @@ as a communication channel."
 	 (author (and (plist-get info :with-author)
 		      (let ((auth (plist-get info :author)))
 			(and auth (org-export-data auth info)))))
-	 (date (format-time-string "%a, %d %h %Y %H:%M:%S %z")) ;; RFC 882
+	 (date (format-time-string "%a, %d %b %Y %H:%M:%S %z")) ;; RFC 882
 	 (description (org-export-data (plist-get info :description) info))
 	 (lang (plist-get info :language))
 	 (keywords (plist-get info :keywords))