diff options
author | Erich Eckner <git@eckner.net> | 2024-05-05 09:03:46 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2024-05-05 09:03:46 +0200 |
commit | ef045b683c2705555d2c8c34273309f1181878b5 (patch) | |
tree | 1749e9f2b3143a2198b9567c768cd20511178fcb /computer-time-limit.php | |
parent | 9f1f4a4756a280c81bd126bc6749146694fd7a9a (diff) | |
download | computer-time-limit-ef045b683c2705555d2c8c34273309f1181878b5.tar.xz |
computer-time-limit.php: set correct time zone
Diffstat (limited to 'computer-time-limit.php')
-rw-r--r-- | computer-time-limit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/computer-time-limit.php b/computer-time-limit.php index 9619066..3fc73e4 100644 --- a/computer-time-limit.php +++ b/computer-time-limit.php @@ -1,5 +1,6 @@ <?php +date_default_timezone_set('Europe/Berlin'); $db = new SQLite3('../backstage/computer-time-limit/computer-time-limit.sqlite'); $now = time(); @@ -61,7 +62,6 @@ if (array_key_exists('msg', $_POST) && array_key_exists('sig', $_POST)) { $msg_parts = explode(' ', $_POST['msg'], 2); - date_default_timezone_set('Europe/Berlin'); if ((1<=date('w')) && (date('w')<=5) && (date('G')<16)) { print("0\n"); } else { |