summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip K <philip@warpmail.net>2019-08-14 22:21:34 +0200
committerDavid Thompson <dthompson@vistahigherlearning.com>2019-08-15 07:47:39 -0400
commit65adbb052f7d27c382b7f9f3c665635aeab96a02 (patch)
treef49dfda4e2808c7ba55eb88d16b3929cd8efbd83
parentd66515e8b3ae463cf7586fdfcc4907f0ce937aaa (diff)
atom: Change date format from ISO-8601 to RFC-3339.
* haunt/builder/atom.scm (date->string*): Format in RFC-3339 style.
-rw-r--r--haunt/builder/atom.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/haunt/builder/atom.scm b/haunt/builder/atom.scm
index 60f710d..2a6c356 100644
--- a/haunt/builder/atom.scm
+++ b/haunt/builder/atom.scm
@@ -133,8 +133,8 @@
(sxml->xml sxml port))
(define (date->string* date)
- "Convert date to ISO-8601 formatted string."
- (date->string date "~4"))
+ "Convert date to RFC-3339 formatted string."
+ (date->string date "~Y-~m-~dT~H:~M:~SZ"))
(define* (post->atom-entry site post #:key (blog-prefix ""))
"Convert POST into an Atom <entry> XML node."