Skip to content

Commit

Permalink
fix date_default_timezone_set
Browse files Browse the repository at this point in the history
  • Loading branch information
skywalker512 committed Jul 7, 2018
1 parent 40a9b4f commit c1ef412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR);

// Make sure a default timezone is set... silly PHP 5.
if (ini_get("date.timezone") == "") date_default_timezone_set("GMT");
if (ini_get("date.timezone") == "") date_default_timezone_set('PRC');

// Define directory constants.
if (!defined("PATH_CONTROLLERS")) define("PATH_CONTROLLERS", PATH_CORE."/controllers");
Expand Down

0 comments on commit c1ef412

Please sign in to comment.