diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-11-16 08:50:31 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-11-16 08:50:31 +0000 |
| commit | 50bb9badefdc703d8cfa61470bfc483040653663 (patch) | |
| tree | 032a68199a298e241f91d0ec4427e75e6a0b29c7 /frontends/php/include/setup.inc.php | |
| parent | ee2f224a93faee1cf04b1eae03e610d438216ce7 (diff) | |
| download | zabbix-50bb9badefdc703d8cfa61470bfc483040653663.tar.gz zabbix-50bb9badefdc703d8cfa61470bfc483040653663.tar.xz zabbix-50bb9badefdc703d8cfa61470bfc483040653663.zip | |
- added checking of timezone setting for PHP5 (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3493 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/setup.inc.php')
| -rw-r--r-- | frontends/php/include/setup.inc.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/frontends/php/include/setup.inc.php b/frontends/php/include/setup.inc.php index 5e1880c6..114fb006 100644 --- a/frontends/php/include/setup.inc.php +++ b/frontends/php/include/setup.inc.php @@ -282,6 +282,19 @@ implode(BR, $img_formats), !isset($no_img_formats), 'Required images genetarion support [PNG]')); + + if(version_compare(phpversion(), '5.1.0RC1', '>=')) + { + $tmezone = ini_get('date.timezone'); + $table->AddRow( + get_test_result( + $final_result, + 'PHP Timezone:', + empty($tmezone) ? 'n/a' : $tmezone, + !empty($tmezone), + 'Timezone for PHP is not set. Please set "date.timezone" option in php.ini.')); + unset($tmezone); + } if(!$final_result) { |
