after creating a demo by using yiic, got PHP error when surfer demo

PHP Error

   		date(): It is not safe to rely on the system's timezone settings. You  are *required* to use the date.timezone setting or the  date_default_timezone_set() function. In case you used any of those  methods and you are still getting this warning, you most likely  misspelled the timezone identifier. We selected 'America/Los_Angeles'  for 'PST/-8.0/no DST' instead	





   		/Users/Jesse/Sites/wudemo/protected/views/layouts/main.php(48)

see the atatched image.

=======================

I installed yii and tried to see how easy to create a demo application, but got problem.

could someone help one this?

Thanks in advance.

Jesse

Looks like you have PHP error level set to strict in your php.ini.

Change that. :)

Or, edit your index.php :





require_once($yii);

$app = Yii::createWebApplication($config);


// we need to set this to UTC, regardless of default timezone 

// which is only for display. UTC is what timestamps etc. are using.

Yii::app()->setTimeZone("UTC");


$app->run();



work well now.

many thanks