mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 02:04:53 +02:00
settimezone
This commit is contained in:
parent
db7c6014dc
commit
ac84e4b235
3 changed files with 6 additions and 1 deletions
|
@ -92,6 +92,7 @@ try {
|
|||
}
|
||||
|
||||
date_default_timezone_set($config['timezone']);
|
||||
ORM::raw_execute("SET time_zone = '$config[timezone]';");
|
||||
$_c = $config;
|
||||
|
||||
// check if proxy setup in database
|
||||
|
@ -107,6 +108,7 @@ try {
|
|||
ORM::configure('password', $radius_pass, 'radius');
|
||||
ORM::configure('driver_options', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'), 'radius');
|
||||
ORM::configure('return_result_sets', true, 'radius');
|
||||
ORM::raw_execute("SET time_zone = '$config[timezone]';",[],'radius');
|
||||
}
|
||||
} catch (Throwable $e) {
|
||||
$ui = new Smarty();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue