From 1ccce67f345ca33441fe22602e11cc62a31db371 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Fri, 10 May 2013 15:46:59 +0400 Subject: [PATCH] fixes #209: do not produce error if not timezone set in case of running yiic from framework dir --- yii/yiic.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yii/yiic.php b/yii/yiic.php index 7cd0c40..3be0436 100644 --- a/yii/yiic.php +++ b/yii/yiic.php @@ -7,6 +7,10 @@ * @license http://www.yiiframework.com/license/ */ +if(!ini_get('date.timezone')) { + date_default_timezone_set('UTC'); +} + defined('YII_DEBUG') or define('YII_DEBUG', true); // fcgi doesn't have STDIN defined by default