diff options
author | Colin Reeder <colin@vpzom.click> | 2020-11-11 23:51:29 -0700 |
---|---|---|
committer | Colin Reeder <colin@vpzom.click> | 2020-11-11 23:51:29 -0700 |
commit | 885cf60995901a449f9e416edb73d67baa595344 (patch) | |
tree | b3529e03c4ef8ab0b992a5eafe4b19161e672545 | |
parent | 19a16864e5a0a31de923d13050d4a5b43da69d45 (diff) |
Include time in post list
-rw-r--r-- | src/components/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/mod.rs b/src/components/mod.rs index dc7442d..c0ad1dc 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -317,6 +317,8 @@ pub fn PostItem<'a>( <br /> <small> {lang.tr("submitted", None)} + {" "} + <TimeAgo since={chrono::DateTime::parse_from_rfc3339(&post.as_ref().created).unwrap()} lang /> { if no_user { None |