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

Co-authored-by: David Robinson <daveed@mailbox.org>
This commit is contained in:
Daveed9 2021-06-23 17:15:51 -04:00 committed by GitHub
parent 7a01f55dd3
commit 46cf3e3a91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")