[geeklog-cvs] geeklog: date_default_timezone_get() exists as of PHP 5.1.0, so ...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Nov 6 08:37:23 EDT 2010


changeset 8009:bd69d81cb233
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/bd69d81cb233
user: Dirk Haun <dirk at haun-online.de>
date: Sat Nov 06 12:56:20 2010 +0100
description:
date_default_timezone_get() exists as of PHP 5.1.0, so no need to check for existence (feature request #0001217)

diffstat:

 public_html/admin/install/lib-install.php |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (18 lines):

diff -r b4006001bbc5 -r bd69d81cb233 public_html/admin/install/lib-install.php
--- a/public_html/admin/install/lib-install.php	Sat Nov 06 12:54:34 2010 +0100
+++ b/public_html/admin/install/lib-install.php	Sat Nov 06 12:56:20 2010 +0100
@@ -70,11 +70,9 @@
 
 $_REQUEST = array_merge($_GET, $_POST);
 
-if (function_exists('date_default_timezone_get')) {
-    // this is not ideal but will stop PHP 5.3.0ff from complaining ...
-    $system_timezone = @date_default_timezone_get();
-    date_default_timezone_set($system_timezone);
-}
+// this is not ideal but will stop PHP 5.3.0ff from complaining ...
+$system_timezone = @date_default_timezone_get();
+date_default_timezone_set($system_timezone);
 
 $language = INST_getLanguage();
 // Include the language file



More information about the geeklog-cvs mailing list