-changed default php timezone to UTC.
This commit is contained in:
parent
4f055788d4
commit
ca154fc2f0
|
@ -7,7 +7,7 @@ require_once 'propel/runtime/lib/Propel.php';
|
|||
Propel::init(__DIR__."/configs/propel-config.php");
|
||||
|
||||
//DateTime in PHP 5.3.0+ need a default timezone set.
|
||||
$tz = ini_get('date.timezone') ? ini_get('date.timezone') : 'America/Toronto';
|
||||
$tz = ini_get('date.timezone') ? ini_get('date.timezone') : 'UTC';
|
||||
date_default_timezone_set($tz);
|
||||
|
||||
require_once (__DIR__."/configs/constants.php");
|
||||
|
|
Loading…
Reference in New Issue