date_default_timezone_set() for Yii application

Hi,

I wanted to get your thoughts on where I can use date_default_timezone_set() function for Yii application.

Maybe the time zone should be set in PHP settings or something but

I would like to know if there is a place I should put date_default_timezone_set() function.

I don’t wanna call this function every time I use date related functions.

Thank you for your help.

Index.php? or some other file that is included in every request.

It can be set in the configuration file:




'timeZone' => 'Your/Timezone',



CWebApplication::$timeZone