소스 검색

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

Co-authored-by: David Robinson <daveed@mailbox.org>
Daveed9 5 년 전
부모
커밋
46cf3e3a91
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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")