partkeepr

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

commit 34ea40531aa1772cc382ffdd20c824c42cb7e156
parent f136e8d521eeeb9a86979451611d178ddcadb839
Author: Felicitus <felicitus@felicitus.org>
Date:   Fri, 10 Feb 2012 00:02:19 +0100

Use date.timezone to display the current timezone, not date_default_timezone_get

Diffstat:
Msrc/setup/tests/check-php-settings.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/setup/tests/check-php-settings.php b/src/setup/tests/check-php-settings.php @@ -59,7 +59,7 @@ if (!isTimezoneSetAndValid()) { $errorMessage = "The PHP timezone (%s) is not set or invalid. Please set the correct timezone in your"; $errorMessage .= " php.ini file (don't forget to restart the web server afterwards)"; - echo json_encode(array("error" => true, "errormessage" => sprintf($errorMessage, @date_default_timezone_get()))); + echo json_encode(array("error" => true, "errormessage" => sprintf($errorMessage, ini_get("date.timezone")))); exit; }