forked from mirrors/org-mode
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.
This commit is contained in:
parent
1fad782491
commit
08d93aa2d5
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue