PHP warning

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 'Asia/Hong_Kong' for 'HKT/8.0/no DST' instead

/Applications/XAMPP/xamppfiles/htdocs/idu/protected/views/layouts/main.php(51)

39     </div><!-- mainmenu -->
40     <?php if(isset($this->breadcrumbs)):?>
41         <?php $this->widget('zii.widgets.CBreadcrumbs', array(
42             'links'=>$this->breadcrumbs,
43         )); ?><!-- breadcrumbs -->
44     <?php endif?>
45 
46     <?php echo $content; ?>
47 
48     <div class="clear"></div>
49 
50     <div id="footer">
51         Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
52         All Rights Reserved.<br/>
53         <?php echo Yii::powered(); ?>
54     </div><!-- footer -->
55 
56 </div><!-- page -->
57 
58 </body>
59 </html>

Stack Trace

#0
+
 /Applications/XAMPP/xamppfiles/htdocs/idu/protected/views/layouts/main.php(51): date("Y")
46     <?php echo $content; ?>
47 
48     <div class="clear"></div>
49 
50     <div id="footer">
51         Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
52         All Rights Reserved.<br/>
53         <?php echo Yii::powered(); ?>
54     </div><!-- footer -->
55 
56 </div><!-- page -->
#8
+
 /Applications/XAMPP/xamppfiles/htdocs/idu/protected/views/layouts/column1.php(6): CBaseController->endContent()
1 <?php /* @var $this Controller */ ?>
2 <?php $this->beginContent('//layouts/main'); ?>
3 <div id="content">
4     <?php echo $content; ?>
5 </div><!-- content -->
6 <?php $this->endContent(); ?>
#12
+
 /Applications/XAMPP/xamppfiles/htdocs/idu/protected/controllers/SiteController.php(32): CController->render("index")
27      */
28     public function actionIndex()
29     {
30         // renders the view file 'protected/views/site/index.php'
31         // using the default layout 'protected/views/layouts/main.php'
32         $this->render('index');
33     }
34 
35     /**
36      * This is the action to handle external exceptions.
37      */
Warning: 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 'Asia/Hong_Kong' for 'HKT/8.0/no DST' instead in /Applications/XAMPP/xamppfiles/htdocs/yii/framework/views/exception.php on line 217 2013-01-19 23:17:33 Yii Framework/1.1.13