diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-13 22:23:59 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-13 22:23:59 +0200 |
commit | 22d96bbd8d2f3c63328e0beb4e192eb9bf3d5ce3 (patch) | |
tree | 659ba958d21f3b3455b3a603111b861da3c14b69 /views/user.pug | |
parent | ede55b317dea7915f4ced8b628d2b31262dc2847 (diff) | |
download | server-22d96bbd8d2f3c63328e0beb4e192eb9bf3d5ce3.tar.gz |
Format human dates in view templates rather than in server queries.
Diffstat (limited to 'views/user.pug')
-rw-r--r-- | views/user.pug | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/user.pug b/views/user.pug index 06fa91d..f3a30f0 100644 --- a/views/user.pug +++ b/views/user.pug @@ -26,8 +26,8 @@ html if who.about p.about= who.about - p Member since #{who.ctime}. - p Last seen #{who.atime}. + p Member since #{human_date(who.ctime)}. + p Last seen #{human_date(who.atime)}. if user && (who.user_id !== user.user_id) p |