summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 26c168d)
raw | patch | inline | side by side (parent: 26c168d)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Jul 2008 15:54:30 +0000 (15:54 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Jul 2008 15:54:30 +0000 (15:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12032 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/utils/class_timezone.inc | patch | blob | history |
diff --git a/gosa-core/include/utils/class_timezone.inc b/gosa-core/include/utils/class_timezone.inc
index f1bb807c17b98c964e08721d482edaa42c8a237d..3c382406c269f6f735fba0c7c388430df819a295 100644 (file)
}
/* Is there a timezone configured in the gosa configuration (gosa.conf) */
- if(isset($config->current['TIMEZONE']) || isset($config->data['MAIN']['TIMEZONE'])){
+ if ($config->get_cfg_value("timezone") != "")
/* Get zonename */
- if(isset($config->current['TIMEZONE'])){
- $tz = $config->current['TIMEZONE'];
- }else{
- $tz = $config->data['MAIN']['TIMEZONE'];
- }
+ $tz = $config->get_cfg_value("timezone");
if(!@date_default_timezone_set($tz)){
msg_dialog::display(_("Configuration error"), sprintf(_("The timezone setting '%s' in your gosa.conf is not valid. Cannot calculate correct timezone offset."), $tz), ERROR_DIALOG);