From e7e4eeff0b261e09fdb48572830abcd78c242015 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 6 Feb 2024 05:43:27 +0100 Subject: computer-time-limit.php: add timestamp --- computer-time-limit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/computer-time-limit.php b/computer-time-limit.php index 14b30a2..67d6c15 100644 --- a/computer-time-limit.php +++ b/computer-time-limit.php @@ -4,7 +4,7 @@ $db = new SQLite3('../backstage/computer-time-limit/computer-time-limit.sqlite') function log_to_file($line) { $handle = fopen('../backstage/computer-time-limit/log', 'a'); - fwrite($handle, $line . "\n"); + fwrite($handle, time() . ' ' . $line . "\n"); fclose($handle); } -- cgit v1.2.3-70-g09d2