Skip to content

Commit 7a107ec

Browse files
authored
Merge pull request #11 from wolf128058/master
additional timezone-check via date_default_timezone_get()
2 parents a7ef2f3 + a72d268 commit 7a107ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kchat/ctrl/login.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ function index(){
1818
$array['host'] = $_SERVER['HTTP_HOST'];
1919
$install = array();
2020
$timezone = get_cfg_var('date.timezone');
21+
if(!$timezone){
22+
$timezone = date_default_timezone_get();
23+
}
2124
$install['extensions'] = array(
2225
"json",
2326
"pdo"

0 commit comments

Comments
 (0)