parent
bc352cdb65
commit
80ebec3122
|
@ -118,14 +118,11 @@ proc getJoinDateFull*(profile: Profile): string =
|
||||||
profile.joinDate.format("h:mm tt - d MMM YYYY")
|
profile.joinDate.format("h:mm tt - d MMM YYYY")
|
||||||
|
|
||||||
proc getTime*(tweet: Tweet): string =
|
proc getTime*(tweet: Tweet): string =
|
||||||
tweet.time.format("d/M/yyyy', 'HH:mm:ss")
|
tweet.time.format("h:mm tt' · 'MMM d', 'YYYY 'UTC'")
|
||||||
|
|
||||||
proc getRfc822Time*(tweet: Tweet): string =
|
proc getRfc822Time*(tweet: Tweet): string =
|
||||||
tweet.time.format("ddd', 'dd 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")
|
|
||||||
|
|
||||||
proc getShortTime*(tweet: Tweet): string =
|
proc getShortTime*(tweet: Tweet): string =
|
||||||
let now = now()
|
let now = now()
|
||||||
let since = now - tweet.time
|
let since = now - tweet.time
|
||||||
|
|
|
@ -338,7 +338,7 @@ proc renderTweet*(tweet: Tweet; prefs: Prefs; path: string; class=""; index=0;
|
||||||
renderQuote(tweet.quote.get(), prefs, path)
|
renderQuote(tweet.quote.get(), prefs, path)
|
||||||
|
|
||||||
if mainTweet:
|
if mainTweet:
|
||||||
p(class="tweet-published"): text getTweetTime(tweet)
|
p(class="tweet-published"): text getTime(tweet)
|
||||||
|
|
||||||
if tweet.mediaTags.len > 0:
|
if tweet.mediaTags.len > 0:
|
||||||
renderMediaTags(tweet.mediaTags)
|
renderMediaTags(tweet.mediaTags)
|
||||||
|
|
Loading…
Reference in New Issue