partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit f136e8d521eeeb9a86979451611d178ddcadb839
parent 4f86ae1abe20f30e570363dfe8b1b4ec2fb0596c
Author: Felicitus <felicitus@felicitus.org>
Date:   Thu,  9 Feb 2012 02:49:12 +0100

Reworked the timezone check function to something which actually works. Sorry, TZ and distribution-related patches are ignored.

Diffstat:
Msrc/setup/tests/check-php-settings.php | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/setup/tests/check-php-settings.php b/src/setup/tests/check-php-settings.php @@ -72,6 +72,10 @@ exit; * @param none * @return bool True if the timezone is set and valid, false otherwise. */ -function isTimezoneSetAndValid () { - return @date_default_timezone_set(@date_default_timezone_get()); +function isTimezoneSetAndValid () { + if (ini_get("date.timezone") == "") { + return false; + } + + return @date_default_timezone_set(ini_get("date.timezone")); } \ No newline at end of file