Set default timezone in Yii
问题 I am using following config for timezone in config.php 'timeZone' => 'UTC', It is working fine and all dates are stored in database according to UTC . Now each user has its own timezone in his/her profile like UTC+5 , UTC-5 , UTC+0 , etc. Now how can I show dates in reports according to user timezone. I used active record to fetch records from database. Is there any general way for all queries or we have to convert date to user timezone each time manually in php ?? Thanks. 回答1: You can set