about summary refs log tree commit diff
path: root/ennum.el
diff options
context:
space:
mode:
Diffstat (limited to 'ennum.el')
-rw-r--r--ennum.el9
1 files 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