Changed procedure getRfc822Time to comply with RSS 2.0 spec (#404)
Co-authored-by: David Robinson <daveed@mailbox.org>
This commit is contained in:
parent
7a01f55dd3
commit
46cf3e3a91
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ proc getTime*(tweet: Tweet): string =
|
||||||
tweet.time.format("d/M/yyyy', 'HH:mm:ss")
|
tweet.time.format("d/M/yyyy', 'HH:mm:ss")
|
||||||
|
|
||||||
proc getRfc822Time*(tweet: Tweet): string =
|
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 =
|
proc getTweetTime*(tweet: Tweet): string =
|
||||||
tweet.time.format("h:mm tt' · 'MMM d', 'YYYY")
|
tweet.time.format("h:mm tt' · 'MMM d', 'YYYY")
|
||||||
|
|
Loading…
Reference in a new issue