From 4ff09b9bbe7ace3f327e0314e193b78dd66f1c04 Mon Sep 17 00:00:00 2001 From: Stefanie Eckner Date: Sat, 17 Feb 2024 09:22:02 +0100 Subject: computer-time-limit.php: use a single time --- computer-time-limit.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/computer-time-limit.php b/computer-time-limit.php index fd23b30..b81081d 100644 --- a/computer-time-limit.php +++ b/computer-time-limit.php @@ -1,10 +1,11 @@ exec( 'UPDATE `computer_time`' . @@ -98,7 +99,7 @@ while ($row = $result->fetchArray()) { $bis = strtotime($row['bis']); $von = strtotime($row['von']); if ($row['aktiv']) { - $von = time(); + $von = $now; } $noch = $bis - $von; -- cgit v1.2.3-70-g09d2