Browse Source

Changed procedure getRfc822Time to comply with RSS 2.0 spec (#404)

Co-authored-by: David Robinson <daveed@mailbox.org>
Daveed9 5 years ago
parent
commit
46cf3e3a91
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/formatters.nim

+ 1 - 1
src/formatters.nim

@@ -97,7 +97,7 @@ proc getTime*(tweet: Tweet): string =
   tweet.time.format("d/M/yyyy', 'HH:mm:ss")
 
 proc getRfc822Time*(tweet: Tweet): string =
-  tweet.time.format("ddd', 'd MMM yyyy HH:mm:ss 'GMT'")
+  tweet.time.format("ddd', 'dd MMM yyyy HH:mm:ss 'GMT'")
 
 proc getTweetTime*(tweet: Tweet): string =
   tweet.time.format("h:mm tt' · 'MMM d', 'YYYY")