From: cajus Date: Thu, 24 Jul 2008 15:54:30 +0000 (+0000) Subject: Updated timezone class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8242fde1a538dd582896d842945b121a4bb985d4;p=gosa.git Updated timezone class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12032 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/utils/class_timezone.inc b/gosa-core/include/utils/class_timezone.inc index f1bb807c1..3c382406c 100644 --- a/gosa-core/include/utils/class_timezone.inc +++ b/gosa-core/include/utils/class_timezone.inc @@ -38,14 +38,10 @@ class timezone { } /* 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);