#4496 PHP 5.3: Timezone settings

This commit is contained in:
Metrax
2012-07-23 00:59:46 +02:00
parent f1beaf329f
commit abd5237cf4
2 changed files with 21 additions and 1 deletions

View File

@ -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