From 1a607bd18e12ea4b220161d168d0c43640c8f123 Mon Sep 17 00:00:00 2001 From: rMalie Date: Thu, 19 Jan 2012 13:47:13 +0000 Subject: [PATCH] // Set default timezone in installer if timezone not found in session --- install-new/classes/controllerHttp.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install-new/classes/controllerHttp.php b/install-new/classes/controllerHttp.php index 7d5cd10a0..5804a08a2 100644 --- a/install-new/classes/controllerHttp.php +++ b/install-new/classes/controllerHttp.php @@ -107,8 +107,7 @@ abstract class InstallControllerHttp $session->last_step = self::$steps[0]; // Set timezone - if ($session->shop_timezone) - @date_default_timezone_set($session->shop_timezone); + @date_default_timezone_set($session->shop_timezone ? $session->shop_timezone : 'UTC'); // Get current step (check first if step is changed, then take it from session) if (Tools::getValue('step'))