From 11678eba54bdeba22c871928f0d8ffd9ebcefb21 Mon Sep 17 00:00:00 2001 From: filesite Date: Fri, 20 May 2022 23:42:53 +0800 Subject: [PATCH] bug fix: wrong timezone id --- conf/app.php | 2 +- www/index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/app.php b/conf/app.php index fb9a9b3..90b5298 100644 --- a/conf/app.php +++ b/conf/app.php @@ -3,7 +3,7 @@ * Config */ return array( - 'default_timezone' => 'Asia/HonKong', //timezone + 'default_timezone' => 'Asia/Shanghai', //timezone 'content_directory' => 'content', //directory of contents 'theme' => '', //name of theme which is enabled diff --git a/www/index.php b/www/index.php index a3b845a..53fb006 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'] : 'Asia/HongKong'; +$default_timezone = !empty($config['default_timezone']) ? $config['default_timezone'] : 'Hongkong'; date_default_timezone_set($default_timezone); $config['start_time'] = $start_time; @@ -10,4 +10,4 @@ require_once __DIR__ . '/../lib/FSC.php'; require_once __DIR__ . '/../controller/Controller.php'; //run app -FSC::run($config); \ No newline at end of file +FSC::run($config);