better timestamps

This commit is contained in:
2026-05-31 18:10:35 +02:00
parent 52a18acf40
commit 235f1b6d14
4 changed files with 55 additions and 11 deletions

View File

@@ -147,7 +147,7 @@ export default (router, tpl) => {
userData.timestamp = {
timeago: lib.timeAgo(userData.created_at, req.lang),
timefull: userData.created_at
timefull: new Date(userData.created_at).toISOString()
};
userData.age_days = Math.floor((Date.now() - new Date(userData.created_at).getTime()) / 86400000);