diff options
author | Pim van den Berg | 2013-12-29 07:01:40 -0800 |
---|---|---|
committer | Pim van den Berg | 2013-12-29 07:01:40 -0800 |
commit | de6cacbf32859f8176b2fa2ea4cab2dd8efe4238 (patch) | |
tree | 0f181559a2e00546f42efe4241982d318ccdf12e /conf/common.inc.php | |
parent | Merge pull request #32 from jbergstroem/parantheses_in_names (diff) | |
parent | Add default timezone when system one is missing (diff) | |
download | apt-panopticon_cgp-de6cacbf32859f8176b2fa2ea4cab2dd8efe4238.zip apt-panopticon_cgp-de6cacbf32859f8176b2fa2ea4cab2dd8efe4238.tar.gz apt-panopticon_cgp-de6cacbf32859f8176b2fa2ea4cab2dd8efe4238.tar.bz2 apt-panopticon_cgp-de6cacbf32859f8176b2fa2ea4cab2dd8efe4238.tar.xz |
Merge pull request #38 from oohlaf/timezone
Add default timezone when system one is missing
Diffstat (limited to 'conf/common.inc.php')
-rw-r--r-- | conf/common.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/conf/common.inc.php b/conf/common.inc.php index 165c73f..506134d 100644 --- a/conf/common.inc.php +++ b/conf/common.inc.php | |||
@@ -4,3 +4,7 @@ require_once 'config.php'; | |||
4 | 4 | ||
5 | $CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']); | 5 | $CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']); |
6 | $CONFIG['weburl'] = preg_replace('/(?<=\/)[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']); | 6 | $CONFIG['weburl'] = preg_replace('/(?<=\/)[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']); |
7 | |||
8 | if (!ini_get('date.timezone')) { | ||
9 | date_default_timezone_set($CONFIG['default_timezone']); | ||
10 | } | ||