summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8f14bd0)
raw | patch | inline | side by side (parent: 8f14bd0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 18 Jul 2007 06:26:43 +0000 (06:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 18 Jul 2007 06:26:43 +0000 (06:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6901 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_timezones.inc | patch | blob | history |
index 1b30d53f200de1672542637e107fa0b8021b0c16..8c3ae9969804e73d1ce49fb28448e973096ffc34 100644 (file)
$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 ;
$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);