// Fix timezone issues in installer
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13681 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -112,7 +112,8 @@ abstract class InstallControllerHttp
|
|||||||
$session->last_step = self::$steps[0];
|
$session->last_step = self::$steps[0];
|
||||||
|
|
||||||
// Set timezone
|
// Set timezone
|
||||||
@date_default_timezone_set($session->shop_timezone ? $session->shop_timezone : 'UTC');
|
if ($session->shop_timezone)
|
||||||
|
@date_default_timezone_set($session->shop_timezone);
|
||||||
|
|
||||||
// Get current step (check first if step is changed, then take it from session)
|
// Get current step (check first if step is changed, then take it from session)
|
||||||
if (Tools::getValue('step'))
|
if (Tools::getValue('step'))
|
||||||
|
|||||||
@@ -65,6 +65,8 @@ require_once(_PS_INSTALL_PATH_.'classes/xmlLoader.php');
|
|||||||
require_once(_PS_INSTALL_PATH_.'classes/simplexml.php');
|
require_once(_PS_INSTALL_PATH_.'classes/simplexml.php');
|
||||||
|
|
||||||
@set_time_limit(0);
|
@set_time_limit(0);
|
||||||
|
if (!@ini_get('date.timezone'))
|
||||||
|
@date_default_timezone_set('UTC');
|
||||||
|
|
||||||
// Try to improve memory limit if it's under 32M
|
// Try to improve memory limit if it's under 32M
|
||||||
if (Tools::getMemoryLimit() < Tools::getOctets('32M'))
|
if (Tools::getMemoryLimit() < Tools::getOctets('32M'))
|
||||||
|
|||||||
Reference in New Issue
Block a user