summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a28f787)
raw | patch | inline | side by side (parent: a28f787)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Sep 2007 09:37:31 +0000 (09:37 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Sep 2007 09:37:31 +0000 (09:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7346 594d385d-05f5-0310-b6e9-bd551577e9d8
html/main.php | patch | blob | history | |
include/php_setup.inc | patch | blob | history |
diff --git a/html/main.php b/html/main.php
index 3eb9acca9018e381244149093d967b2cfc044607..b48ad92131d989ae32f7bf9e3385172fe944ccf5 100644 (file)
--- a/html/main.php
+++ b/html/main.php
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 b3f839dcaa4d9c5e33fb80483683bd74b5843f0e..b06a46c5789255210b07dc7c8394db3a8940424b 100644 (file)
--- a/include/php_setup.inc
+++ b/include/php_setup.inc
}
}
+ /* Hide timezone warnings, gosa */
+ if(preg_match("/date.timezone/",$errstr)){
+
+ $tmp= get_default_timezone();
+ echo $tmp['name'];
+ echo $errfile;
+ echo "<br>";
+ return;
+ }
+
/* Create header as needed */
if ($error_collector == ""){
/* 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: