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.
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.