summaryrefslogtreecommitdiff
path: root/computer-time-limit.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-02-06 05:43:27 +0100
committerErich Eckner <git@eckner.net>2024-02-06 05:43:27 +0100
commite7e4eeff0b261e09fdb48572830abcd78c242015 (patch)
treebfc7625073cc8cfafe879e86d91dde0644022a11 /computer-time-limit.php
parent37a49a23bf640238034b547be845b9bf4d0ecaf8 (diff)
downloadcomputer-time-limit-e7e4eeff0b261e09fdb48572830abcd78c242015.tar.xz
computer-time-limit.php: add timestamp
Diffstat (limited to 'computer-time-limit.php')
-rw-r--r--computer-time-limit.php2
1 files changed, 1 insertions, 1 deletions
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);
}