Browse Source

bug fix: wrong timezone id

master
filesite 3 years ago
parent
commit
11678eba54
  1. 2
      conf/app.php
  2. 4
      www/index.php

2
conf/app.php

@ -3,7 +3,7 @@
* Config * Config
*/ */
return array( return array(
'default_timezone' => 'Asia/HonKong', //timezone 'default_timezone' => 'Asia/Shanghai', //timezone
'content_directory' => 'content', //directory of contents 'content_directory' => 'content', //directory of contents
'theme' => '', //name of theme which is enabled 'theme' => '', //name of theme which is enabled

4
www/index.php

@ -2,7 +2,7 @@
/* All php controller enter from here */ /* All php controller enter from here */
$start_time = microtime(true); //for time cost $start_time = microtime(true); //for time cost
$config = require_once __DIR__ . '/../conf/app.php'; $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); date_default_timezone_set($default_timezone);
$config['start_time'] = $start_time; $config['start_time'] = $start_time;
@ -10,4 +10,4 @@ require_once __DIR__ . '/../lib/FSC.php';
require_once __DIR__ . '/../controller/Controller.php'; require_once __DIR__ . '/../controller/Controller.php';
//run app //run app
FSC::run($config); FSC::run($config);

Loading…
Cancel
Save