It's user-specific, so store it in the user's session.

On Mon, Jan 12, 2009 at 12:14 AM, Amit Badkas <[email protected]> wrote:
> I think, AppController::beforeFilter() is proper place to put your timezone
> setting code
>
> 2009/1/12, fly2279 <[email protected]>:
>>
>> I would like to set the timezone based on a value stored in a user
>> profile. The function will get the timezone value based on which user
>> is logged in and use php's date_default_timezone_set() function to set
>> the script timezone. The whole application should be using the
>> timezone that is set, not just a single controller or model. Where
>> should I place this function and how should I call it to run?
>
>
>
> --
> Amit
>
> http://amitrb.wordpress.com/
> http://coppermine-gallery.net/
> http://cheesecake-photoblog.org/
> http://www.sanisoft.com/blog/author/amitbadkas
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to