Code

Added fixed for PHP 5.1.x that claims about problems with date functions
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jan 2006 14:46:01 +0000 (14:46 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jan 2006 14:46:01 +0000 (14:46 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2467 594d385d-05f5-0310-b6e9-bd551577e9d8

include/php_setup.inc

index 3274152dcde67d82113879a3cc8518a5d2609d88..93104ad286a1358c02c33d907f10118b0af3c065 100644 (file)
@@ -164,5 +164,10 @@ $smarty->template_dir = $BASE_DIR.'/ihtml/';
 $smarty->caching= false;
 $smarty->php_handling= SMARTY_PHP_REMOVE;
 
+/* Set timezone */
+if (function_exists("date_default_timezone_set")){
+  date_default_timezone_set("GMT");
+}
+
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>