aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/index.php b/index.php
index 1439ec2f..e3b612c8 100644
--- a/index.php
+++ b/index.php
@@ -5,10 +5,12 @@
5// Licence: http://www.opensource.org/licenses/zlib-license.php 5// Licence: http://www.opensource.org/licenses/zlib-license.php
6// Requires: PHP 5.3.x 6// Requires: PHP 5.3.x
7// ----------------------------------------------------------------------------------------------- 7// -----------------------------------------------------------------------------------------------
8// NEVER TRUST IN PHP.INI 8
9// Some hosts do not define a default timezone in php.ini, 9// Set 'UTC' as the default timezone if it is not defined in php.ini
10// so we have to do this for avoid the strict standard error. 10// See http://php.net/manual/en/datetime.configuration.php#ini.date.timezone
11date_default_timezone_set('UTC'); 11if (date_default_timezone_get() == '') {
12 date_default_timezone_set('UTC');
13}
12 14
13// ----------------------------------------------------------------------------------------------- 15// -----------------------------------------------------------------------------------------------
14// Hardcoded parameter (These parameters can be overwritten by editing the file /data/config.php) 16// Hardcoded parameter (These parameters can be overwritten by editing the file /data/config.php)