From 8242fde1a538dd582896d842945b121a4bb985d4 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 24 Jul 2008 15:54:30 +0000 Subject: [PATCH] Updated timezone class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12032 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/utils/class_timezone.inc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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); -- 2.30.2