summaryrefslogtreecommitdiff
path: root/libs/system.php
diff options
context:
space:
mode:
Diffstat (limited to 'libs/system.php')
-rw-r--r--libs/system.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/system.php b/libs/system.php
index d28ff53..5aea939 100644
--- a/libs/system.php
+++ b/libs/system.php
@@ -1,5 +1,6 @@
<?php
require '../autoload.php';
+date_default_timezone_set(@date_default_timezone_get());
// Hostname
$hostname = php_uname('n');
@@ -54,7 +55,6 @@ if (!($current_users = shell_exec('who -u | awk \'{ print $1 }\' | wc -l')))
// Server datetime
if (!($server_date = shell_exec('/bin/date')))
{
- date_default_timezone_set(@date_default_timezone_get());
$server_date = date('Y-m-d H:i:s');
}