new app

Hi all

I just installed yii latest version on a Open suse 11.2 desktop version

Created a new app

This is the url http://localhost/myapp, then these error messages are shown on the screen

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/New_York’ for ‘EDT/-4.0/DST’ instead

Source File

/srv/www/htdocs/myapp/protected/views/layouts/main.php(47)

This is part of the source code in main.php

div id="footer">

            Copyright © <?php echo date('Y'); ?> by My Company.<br/> This is the line 47


            All Rights Reserved.<br/>


            <?php echo Yii::powered(); ?>


    </div><!-- footer -->

Checked that file (main.php) it referes to the date() function, so I created a small script to test it and it worked

<?php

echo date(‘Y’);

?>

I changed the time zone to America/New_York, restarted apache and still same thing

So I don’t understand what the issue is here.

Any ideas?

Thanks in advance a lot for your help

Julius

This has already been discussed here many times…

http://www.yiiframework.com/forum/index.php?/topic/10750-webapp-problem-on-ubuntu-server/

http://www.yiiframework.com/forum/index.php?/topic/8212-getting-date-error-from-testdriveprotectedviewslayoutsmainphp47/

Thanks four your reply, it fixed my problem

Next time I will check the forum before I post a new topic.