From 849c9cd3e8971c2f468e7281599d0370c1d0f049 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 13 Nov 2025 23:06:34 +0000 Subject: Handle time zone information in Atom feed dates. --- ennum.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ennum.el b/ennum.el index c6282f1..c2c1054 100644 --- a/ennum.el +++ b/ennum.el @@ -634,8 +634,13 @@ result as a string." (ennum-setting :blog-domain) path)) -(defun ennum--atom-date (date) - (format-time-string "%Y-%m-%dT%H:%M:%SZ" date)) +(defun ennum--atom-date (date &optional zone) + ;; Atom uses the RFC 3339 date format. + (let ((zone-string (format-time-string "%z" date zone))) + (concat (format-time-string "%Y-%m-%dT%H:%M:%S" date) + (substring zone-string 0 3) + ":" + (substring zone-string 3)))) (defun ennum-publish-feed (feed-file title rights posts) (let ((interned-post-files -- cgit 1.4.1