diff --git a/blog/feed.xml b/blog/feed.xml index 9530aaa..b9d8af9 100644 --- a/blog/feed.xml +++ b/blog/feed.xml @@ -1,4 +1,4 @@ -RSS Testhttp://example.comAn example blog for testing RSS capability of md4tj.en-USTue, 10 Jun 2003 04:00:00 GMTeditor@example.comwebmaster@example.comhttps://www.rssboard.org/rss-specificationmd4tj-rss.elTue, 05 Sep 2023 00:12:26 GMTBlog Post 2https://example.com/blog/blogpost2.htmlhttps://example.com/blog/blogpost2.html +RSS Testhttp://example.comAn example blog for testing RSS capability of md4tj.en-USTue, 10 Jun 2003 04:00:00 GMTeditor@example.comwebmaster@example.comhttps://www.rssboard.org/rss-specificationmd4tj-rss.elTue, 05 Sep 2023 00:44:58 GMTBlog Post 2https://example.com/blog/blogpost2.htmlhttps://example.com/blog/blogpost2.html <br> diff --git a/md4tj.el b/md4tj.el index fbfebeb..ddb6a9e 100644 --- a/md4tj.el +++ b/md4tj.el @@ -101,7 +101,7 @@ (cond ((string-match "^@@INCLUDE" line) (md4tj-parse-to-string (nth 1 (split-string line)))) ((string-match "^@@LASTUPDATED" line) (concat (md4tj-begin-tag "p" (list (list "id" "lastupdated"))) - "Last updated: " (current-time-string) + "Last updated: " (format-time-string "%a %d %b %Y %H:%M UTC" nil t) (md4tj-end-tag "p"))) ((string-match "^@@DIV" line) (md4tj-begin-tag "div" (list (list "class" (nth 1 (split-string line)))))) ((string-match "^@@ENDDIV" line) (md4tj-end-tag "div")) @@ -350,7 +350,7 @@ "Convert abl list elt ELT to html." (concat "
" "\n" "

" (nth 0 elt) "

" "\n" - "
" (format-time-string "%Y %B %d %H:%M" (string-to-number (nth 1 elt))) "
" "\n" + "
" (format-time-string "%Y %B %d %H:%M UTC" (string-to-number (nth 1 elt)) t) "
" "\n" "
")) (defun md4tj-blog-all-blogs-list-to-html (abl) diff --git a/test_blog.html b/test_blog.html index c38d965..8cd7c27 100644 --- a/test_blog.html +++ b/test_blog.html @@ -23,11 +23,11 @@
RSS icon

Blog Post 2

-
2023 March 02 19:44
+
2023 March 03 00:44 UTC

Blog Post 1

-
2023 March 02 19:44
+
2023 March 03 00:44 UTC

diff --git a/test_file.html b/test_file.html index 9880337..19b218c 100644 --- a/test_file.html +++ b/test_file.html @@ -75,7 +75,7 @@ int main() {

This is a div that has monospace text.

-

Last updated: Tue Sep 5 00:12:25 2023

+

Last updated: Tue 05 Sep 2023 04:44 UTC