Skip to content

Commit 6511aa9

Browse files
author
Adam Simpson
committed
fix: RSS date is now valid RFC-822.
In refactoring the RSS date generation I forgot to pad single digit hour, minute, and second values with a leading zero.
1 parent a56ee70 commit 6511aa9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cycle.asd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
:description "A opinionated static site builder."
55
:author "Adam Simpson <adam@adamsimpson.net>"
66
:license "GNU GPLv3"
7-
:version "0.2.8"
7+
:version "0.2.9"
88
:serial t
99
:depends-on (
1010
:local-time

cycle.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
(defun date-as-rfc-822 (date)
230230
(local-time:format-timestring nil
231231
(local-time:parse-timestring date)
232-
:format '(:short-weekday ", " :day " " :short-month " " :year " " :hour ":" :min ":" (:sec 2) " " :gmt-offset-hhmm)))
232+
:format '(:short-weekday ", " :day " " :short-month " " :year " " (:hour 2) ":" (:min 2) ":" (:sec 2) " " :gmt-offset-hhmm)))
233233

234234
(defun format-data-for-rss(post)
235235
(let ((slug (cdr (assoc :slug post))))

0 commit comments

Comments
 (0)