#4496 PHP 5.3: Timezone settings
This commit is contained in:
@ -54,7 +54,7 @@ function __autoload($class_name)
|
||||
normalize_settings();
|
||||
set_language();
|
||||
set_usercountry();
|
||||
|
||||
set_timezone();
|
||||
// set stylepath and langpath
|
||||
if (isset($opt['template']['style']))
|
||||
{
|
||||
@ -205,6 +205,13 @@ function set_usercountry()
|
||||
$cookie->set('usercountry', $_REQUEST['usercountry']);
|
||||
}
|
||||
|
||||
function set_timezone()
|
||||
{
|
||||
global $opt;
|
||||
|
||||
date_default_timezone_set($opt['locale'][$opt['template']['locale']]['timezone']);
|
||||
}
|
||||
|
||||
function fix_magic_quotes_gpc()
|
||||
{
|
||||
// Disable magic_quotes_runtime
|
||||
|
Reference in New Issue
Block a user