2011-08-19 Sancho Lerena <slerena@artica.es>
* include/config_process.php: Fixed problem with timezone on page load in setup. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4787 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
100e9d1d4e
commit
558bc0cdeb
|
@ -1,3 +1,8 @@
|
|||
2011-08-19 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* include/config_process.php: Fixed problem with timezone on page load
|
||||
in setup.
|
||||
|
||||
2011-08-19 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_graph.php: in function "graphic_agentaccess" fixed when
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
$build_version = 'PC110121';
|
||||
$pandora_version = 'v4.0dev';
|
||||
|
||||
date_default_timezone_set("Europe/Berlin");
|
||||
|
||||
/* Help to debug problems. Override global PHP configuration */
|
||||
if (!isset($develop_bypass)) $develop_bypass = 0;
|
||||
|
||||
|
@ -78,6 +80,12 @@ require_once ($ownDir. 'functions_config.php');
|
|||
|
||||
config_process_config();
|
||||
|
||||
// Set a the system timezone default
|
||||
if ((!isset($config["timezone"])) OR ($config["timezone"] == "")){
|
||||
$config["timezone"] = "Europe/Berlin";
|
||||
}
|
||||
date_default_timezone_set($config["timezone"]);
|
||||
|
||||
require_once ($ownDir . 'streams.php');
|
||||
require_once ($ownDir . 'gettext.php');
|
||||
|
||||
|
@ -88,13 +96,6 @@ else {
|
|||
$config["remote_addr"] = null;
|
||||
}
|
||||
|
||||
// Set a the system timezone default
|
||||
if ((!isset($config["timezone"])) OR ($config["timezone"] == "")){
|
||||
$config["timezone"] = "Europe/Berlin";
|
||||
}
|
||||
|
||||
date_default_timezone_set($config["timezone"]);
|
||||
|
||||
// Save the global values
|
||||
$config["global_block_size"] = $config["block_size"];
|
||||
$config["global_flash_charts"] = $config["flash_charts"];
|
||||
|
|
Loading…
Reference in New Issue