default timezone
darcs-hash:20080716210949-84dde-b12d95acdf6f15887fe83fea8f968c972b862be5.gz
This commit is contained in:
parent
4798cd3126
commit
d9b164b3bd
|
@ -45,6 +45,7 @@ $config =
|
||||||
'email' =>
|
'email' =>
|
||||||
array_key_exists('SERVER_ADMIN', $_SERVER) ? $_SERVER['SERVER_ADMIN'] : NULL,
|
array_key_exists('SERVER_ADMIN', $_SERVER) ? $_SERVER['SERVER_ADMIN'] : NULL,
|
||||||
'broughtby' => NULL,
|
'broughtby' => NULL,
|
||||||
|
'timezone' => 'UTC',
|
||||||
'broughtbyurl' => NULL),
|
'broughtbyurl' => NULL),
|
||||||
'syslog' =>
|
'syslog' =>
|
||||||
array('appname' => 'laconica', # for syslog
|
array('appname' => 'laconica', # for syslog
|
||||||
|
@ -87,6 +88,11 @@ $config['db'] =
|
||||||
'quote_identifiers' => false);
|
'quote_identifiers' => false);
|
||||||
|
|
||||||
require_once(INSTALLDIR.'/config.php');
|
require_once(INSTALLDIR.'/config.php');
|
||||||
|
|
||||||
|
if (function_exists('date_default_timezone_set') && $config['site']['timezone']) {
|
||||||
|
date_default_timezone_set($config['site']['timezone']);
|
||||||
|
}
|
||||||
|
|
||||||
require_once(INSTALLDIR.'/lib/util.php');
|
require_once(INSTALLDIR.'/lib/util.php');
|
||||||
require_once(INSTALLDIR.'/lib/action.php');
|
require_once(INSTALLDIR.'/lib/action.php');
|
||||||
require_once(INSTALLDIR.'/lib/theme.php');
|
require_once(INSTALLDIR.'/lib/theme.php');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user