From: hickert Date: Wed, 18 Jul 2007 06:20:54 +0000 (+0000) Subject: Updated Timezone error messages X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=47084c8c7903ef92d320c098325878e26a943d96;p=gosa.git Updated Timezone error messages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6900 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_timezones.inc b/include/class_timezones.inc index 1b30d53f2..8c3ae9969 100644 --- a/include/class_timezones.inc +++ b/include/class_timezones.inc @@ -67,6 +67,7 @@ function get_default_timezone($stamp = NULL) $dst_zones = $tmp['DST_ZONES']; /* Detect zone and calculate offset */ + $found = FALSE; foreach($zones as $name => $value){ if(preg_match("#".normalizePreg($name)."#i",$tz)){ $offset = $value / 3600 ; @@ -74,8 +75,14 @@ function get_default_timezone($stamp = NULL) $offset ++; } $zone = array("name" => $name, "value" => $offset); + $found = TRUE; + break; } } + if(!$found){ + print_red(sprintf(_("The timezone setting \"".$tz."\" in your gosa.conf is not valid. Can not calculate correct timezone offest."), +$tz)); + } } } return($zone);