Add check on timezone

This commit is contained in:
Frederic Guillot 2013-08-03 21:06:22 -04:00
parent 3f896ec4e5
commit 93678fa014
1 changed files with 5 additions and 0 deletions

View File

@ -45,3 +45,8 @@ if (! function_exists('curl_init') && ! ini_get('allow_url_fopen')) {
if (! is_writable('data')) {
die('The directory "data" must be writeable by your web server user');
}
// If timezone is not set
if (! ini_get('date.timezone')) {
die('You must configure a timezone in you php.ini (date.timezone value)');
}