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 &copy; <?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