// Set timezone in new installer

This commit is contained in:
rMalie
2011-12-29 16:11:04 +00:00
parent de584ee4a1
commit 2ca6350545
2 changed files with 5 additions and 2 deletions
+1 -2
View File
@@ -113,8 +113,7 @@ $defaultCountry = new Country(Configuration::get('PS_COUNTRY_DEFAULT'), Configur
Context::getContext()->country = $defaultCountry;
/* It is not safe to rely on the system's timezone settings, and this would generate a PHP Strict Standards notice. */
if (function_exists('date_default_timezone_set'))
@date_default_timezone_set(Configuration::get('PS_TIMEZONE'));
@date_default_timezone_set(Configuration::get('PS_TIMEZONE'));
/* Instantiate cookie */
$cookieLifetime = (time() + (((int)Configuration::get('PS_COOKIE_LIFETIME_BO') > 0 ? (int)Configuration::get('PS_COOKIE_LIFETIME_BO') : 1)* 3600));