When creating a skeleton app I always get the message that I have to set the default timezone since the footer uses the date() function. I know this is a PHP thing but is this something that Yii needs in a configuration file or something? Right now I am just adding “date_default_timezone_set(‘America/New_York’);” to the main.php file in the config folder of the generated skeleton project. Not sure if this a the proper way to setting this in Yii.
The skeleton app calls date() in the page footer. This is not really required. You can modify the footer code to remove this call.
However, I think it is better for you to modify your php.ini because date() is usually widely used in an application.
As of PHP 5.3.0 a Warning is generated: “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”.
I set this option in the main.php file, but maybe it would be a good idea to set this in the config file.
maybe it’s a good idea to point it out in skeleton webapp installation manuals, or even setting timezone explicitly somewhere in created webapp.