summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 14ebe80)
raw | patch | inline | side by side (parent: 14ebe80)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 18 Jul 2007 06:12:31 +0000 (06:12 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 18 Jul 2007 06:12:31 +0000 (06:12 +0000) |
Incorrect timezone setting will cause print_red error message
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6897 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6897 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_timezones.inc | patch | blob | history |
index 3c2534dd052adee4f15a6133b51bafb1feb16d4e..1b30d53f200de1672542637e107fa0b8021b0c16 100644 (file)
/* Check if we could use the PHP5 default timezone functions */
if(function_exists("date_default_timezone_set")){
- date_default_timezone_set($tz);
+ if(!@date_default_timezone_set($tz)){
+ print_red(sprintf(_("The timezone setting \"".$tz."\" in your gosa.conf is not valid. Can not calculate correct timezone offest."),$tz));
+ }
$tz_delta = date("Z", $stamp);
$tz_delta = $tz_delta / 3600 ;
return(array("name" => $tz, "value" => $tz_delta));