Use config array to get the timezone. syscfg is no longer defined here.

This commit is contained in:
Phil Davis 2012-06-21 16:00:56 +05:45
parent 119f89c83c
commit c8083ee2d7

View File

@ -44,7 +44,7 @@ require_once("globals.inc");
require_once("guiconfig.inc");
require_once("pkg-utils.inc");
$timezone = $syscfg['timezone'];
$timezone = $config['system']['timezone'];
if (!$timezone)
$timezone = "Etc/UTC";