Code

return 0 timezone offset if timezone is not configured
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 16 Jul 2007 09:54:12 +0000 (09:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 16 Jul 2007 09:54:12 +0000 (09:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6874 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_timezones.inc

index b3db5a33467aea5afed517a21d108fafc9471b9a..c541d718fbfe897278ac0c27142108b01082caab 100644 (file)
@@ -30,6 +30,7 @@ function get_default_timezone()
                $zone = get_timezone($tz);
                if(!count($zone)){
                        print_red(sprintf(_("The timezone you have configured in your gosa.conf (%s) is not valid."),$tz));
+                       $zone = array("name" => "unconfigured", "value" => 0);
                }
        }
        return($zone);