diff --git a/conf/app.php b/conf/app.php index 5878962..3330988 100644 --- a/conf/app.php +++ b/conf/app.php @@ -4,8 +4,8 @@ */ $configs = array( 'version' => '0.1.0', - 'default_timezone' => 'Asia/Shanghai', //timezone - 'site_name' => 'FileSite.io - 无数据库、基于文件和目录的Markdown文档、网址导航、图书、图片、视频网站PHP开源系统', + 'default_timezone' => 'Asia/Hong_Kong', //timezone, check more: https://www.php.net/manual/en/timezones.asia.php + 'site_name' => 'Machete from FileSite.io - 无数据库、基于文件和目录的Markdown文档、网址导航、图书、图片、视频网站PHP开源系统', //多用户网址解析开关,默认为关闭状态 //规则:当此开关打开的情况下,网址中域名后面第一个目录,如果是纯数字,则把它作为用户ID diff --git a/www/index.php b/www/index.php index 1fddbb2..14a8341 100644 --- a/www/index.php +++ b/www/index.php @@ -2,7 +2,7 @@ /* All php controller enter from here */ $start_time = microtime(true); //for time cost $config = require_once __DIR__ . '/../conf/app.php'; -$default_timezone = !empty($config['default_timezone']) ? $config['default_timezone'] : 'Hongkong'; +$default_timezone = !empty($config['default_timezone']) ? $config['default_timezone'] : 'Asia/Hong_Kong'; date_default_timezone_set($default_timezone); $config['start_time'] = $start_time;