[geeklog-cvs] geeklog: Set default timezone in the install script on PHP 5.3 a...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Feb 28 10:16:02 EST 2010
changeset 7761:8404556043da
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/8404556043da
user: Dirk Haun <dirk at haun-online.de>
date: Sun Feb 28 16:14:26 2010 +0100
description:
Set default timezone in the install script on PHP 5.3 and later
diffstat:
public_html/admin/install/lib-install.php | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 5918cdf66b26 -r 8404556043da public_html/admin/install/lib-install.php
--- a/public_html/admin/install/lib-install.php Sat Feb 27 19:46:05 2010 +0100
+++ b/public_html/admin/install/lib-install.php Sun Feb 28 16:14:26 2010 +0100
@@ -70,6 +70,12 @@
$_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);
+}
+
if (empty($LANG_DIRECTION)) {
$LANG_DIRECTION = 'ltr';
}
More information about the geeklog-cvs
mailing list