From: hickert Date: Thu, 20 Sep 2007 09:37:31 +0000 (+0000) Subject: Timezone TEst X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=87381b335bfdba9a7a7dd5c0fd00b70b8aaebb10;p=gosa.git Timezone TEst git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7346 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/main.php b/html/main.php index 3eb9acca9..b48ad9213 100644 --- a/html/main.php +++ b/html/main.php @@ -74,7 +74,7 @@ if ($_SERVER['REMOTE_ADDR'] != $ui->ip){ exit; } $config= $_SESSION['config']; - +get_default_timezone(); /* Check for invalid sessions */ if(empty($_SESSION['_LAST_PAGE_REQUEST'])){ diff --git a/include/php_setup.inc b/include/php_setup.inc index b3f839dca..b06a46c57 100644 --- a/include/php_setup.inc +++ b/include/php_setup.inc @@ -66,6 +66,16 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) } } + /* Hide timezone warnings, gosa */ + if(preg_match("/date.timezone/",$errstr)){ + + $tmp= get_default_timezone(); + echo $tmp['name']; + echo $errfile; + echo "
"; + return; + } + /* Create header as needed */ if ($error_collector == ""){ @@ -250,7 +260,7 @@ $smarty->php_handling= SMARTY_PHP_REMOVE; /* Set timezone */ if (function_exists("date_default_timezone_set")){ - date_default_timezone_set("GMT"); +# date_default_timezone_set("GMT"); } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: