Hi,
Does anyone know the best way for making a app with different timezones?
Does Yii provide anything for this?
James.
Hi,
Does anyone know the best way for making a app with different timezones?
Does Yii provide anything for this?
James.
I use datetime from php:
$datetime=new DateTime('now', new DateTimeZone('Europe/Berlin')));
$datetime->formate('H:i');
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.