YII 1.X After login how to change timezone

Dear Friends,

Can you please any help me…YII 1.X after login how to change timezone overall application based on database table.I tried setTimeZone but its not working.

I tried after login YII::app()->setTimeZone but this also not working.

How so? What is your expected result and what is actually happening?

Thanks for your reply Jones,

Actually my requirement is after login timezone changed overall application.Timezone retrieved from database table. Login time i set YII::app()->user->setTimeZone(); But overall application its timezone not changed.Can you please help me how to change overall application same timezone. Otherwise after login how to set timezone in config main.php file.

Please post the code of how you set the timezone and then how you output a date. Use "code" tags.