summaryrefslogtreecommitdiff
path: root/computer-time-limit.php
diff options
context:
space:
mode:
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 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 {