From 93678fa014505d7c3536601976e84efbe7b2d645 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 3 Aug 2013 21:06:22 -0400 Subject: [PATCH] Add check on timezone --- check_setup.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/check_setup.php b/check_setup.php index 54e890c..3ffde78 100644 --- a/check_setup.php +++ b/check_setup.php @@ -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)'); +}