summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-05-05 09:03:46 +0200
committerErich Eckner <git@eckner.net>2024-05-05 09:03:46 +0200
commitef045b683c2705555d2c8c34273309f1181878b5 (patch)
tree1749e9f2b3143a2198b9567c768cd20511178fcb
parent9f1f4a4756a280c81bd126bc6749146694fd7a9a (diff)
downloadcomputer-time-limit-master.tar.xz
computer-time-limit.php: set correct time zoneHEADmaster
-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 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 {