From 22d96bbd8d2f3c63328e0beb4e192eb9bf3d5ce3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 13 Oct 2024 22:23:59 +0200 Subject: Format human dates in view templates rather than in server queries. --- views/user.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/user.pug') 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 -- cgit v1.2.3