mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +09:00
#18864023 : set default time zone (for php5.3)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7408 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ccd0c61c9f
commit
5600ba63c1
1 changed files with 8 additions and 0 deletions
|
|
@ -112,6 +112,14 @@
|
||||||
**/
|
**/
|
||||||
require(_XE_PATH_.'config/func.inc.php');
|
require(_XE_PATH_.'config/func.inc.php');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Set Timezone as server time
|
||||||
|
**/
|
||||||
|
if(version_compare(PHP_VERSION, '5.3.0') >= 0)
|
||||||
|
{
|
||||||
|
date_default_timezone_set(@date_default_timezone_get());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(__DEBUG__) define('__StartTime__', getMicroTime());
|
if(__DEBUG__) define('__StartTime__', getMicroTime());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue