Browse Source

bug fix: wrong timezone id

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

2
conf/app.php

@ -3,7 +3,7 @@ @@ -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

2
www/index.php

@ -2,7 +2,7 @@ @@ -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;

Loading…
Cancel
Save