diff options
author | ShevAbam <shevabam@gmail.com> | 2016-01-08 14:35:02 +0100 |
---|---|---|
committer | ShevAbam <shevabam@gmail.com> | 2016-01-08 14:35:02 +0100 |
commit | 30db2217136c5b64845a1104e4f5fbea4badf0bd (patch) | |
tree | 814403e3c47ede503271a7c3ecce2868e4280007 | |
parent | 1977a21093904021f4891b8d2971d0cccce42429 (diff) |
System : prevents error with date if there is no date.timezone defined in php.ini
-rw-r--r-- | libs/system.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/system.php b/libs/system.php index 39e4096..d28ff53 100644 --- a/libs/system.php +++ b/libs/system.php @@ -54,6 +54,7 @@ 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'); } |