From 0c473367d5c505d8c40cb6db2957a975e98989af Mon Sep 17 00:00:00 2001 From: "Alfonso Saavedra \"Son Link" Date: Thu, 19 Dec 2024 17:01:24 +0100 Subject: [PATCH] Fix issue with sessiontimestamp --- app/Views/users.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Views/users.php b/app/Views/users.php index 0872452..e5bff4a 100644 --- a/app/Views/users.php +++ b/app/Views/users.php @@ -22,9 +22,9 @@
sessiontimestamp>0) + if((int) $user->sessiontimestamp > 0) { - $date1 = new DateTime(""); + $date1 = new DateTime(); $date2 = new DateTime($user->sessiontimestamp); $interval = $date1->diff($date2); $ago='';