Best Way To Do Different Timezones


Does anyone know the best way for making a app with different timezones?

Does Yii provide anything for this?


I use datetime from php:

$datetime=new DateTime('now', new DateTimeZone('Europe/Berlin')));


I store all dates/times in UTC format. On the server, in the client, everywhere.

I then use a jQuery plugin to show the dates/times taking the users timezone into account.