Skip to content

Commit

Permalink
fix: RSS date is now valid RFC-822.
Browse files Browse the repository at this point in the history
In refactoring the RSS date generation I forgot to pad single digit
hour, minute, and second values with a leading zero.
  • Loading branch information
Adam Simpson committed Aug 24, 2020
1 parent a56ee70 commit 6511aa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cycle.asd
Expand Up @@ -4,7 +4,7 @@
:description "A opinionated static site builder."
:author "Adam Simpson <adam@adamsimpson.net>"
:license "GNU GPLv3"
:version "0.2.8"
:version "0.2.9"
:serial t
:depends-on (
:local-time
Expand Down
2 changes: 1 addition & 1 deletion cycle.lisp
Expand Up @@ -229,7 +229,7 @@
(defun date-as-rfc-822 (date)
(local-time:format-timestring nil
(local-time:parse-timestring date)
:format '(:short-weekday ", " :day " " :short-month " " :year " " :hour ":" :min ":" (:sec 2) " " :gmt-offset-hhmm)))
:format '(:short-weekday ", " :day " " :short-month " " :year " " (:hour 2) ":" (:min 2) ":" (:sec 2) " " :gmt-offset-hhmm)))

(defun format-data-for-rss(post)
(let ((slug (cdr (assoc :slug post))))
Expand Down

0 comments on commit 6511aa9

Please sign in to comment.