From 736fe7c4d8126808266d1100bcd61430625c4455 Mon Sep 17 00:00:00 2001 From: Mike Tralala Date: Mon, 16 Mar 2015 13:33:30 +0100 Subject: [PATCH 1/2] the used timezone should be editable if the timezone is set in the php cli ini file, mage should use that one instead of the default UTC --- bin/mage | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/mage b/bin/mage index 52f5c19..65aeabc 100755 --- a/bin/mage +++ b/bin/mage @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -date_default_timezone_set('UTC'); +if(empty(ini_get('date.timezone'))){ + date_default_timezone_set('UTC'); +} $baseDir = dirname(dirname(__FILE__)); From 91344c0ec8f4f36730a3f1d479e65c504cd5c1ca Mon Sep 17 00:00:00 2001 From: Mike Tralala Date: Mon, 16 Mar 2015 15:58:01 +0100 Subject: [PATCH 2/2] Update to fix the CS --- bin/mage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mage b/bin/mage index 65aeabc..88f4c9e 100755 --- a/bin/mage +++ b/bin/mage @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -if(empty(ini_get('date.timezone'))){ +if (empty(ini_get('date.timezone'))) { date_default_timezone_set('UTC'); }