I've been researching this for the past few hours, and didn't really
find a solid solution. I want to run this by anyone who has
experienced this and get their opinion.

Here is the Theory I'd like to verify with you..

Anytime a row is created or modified it should use
"date_default_timezone_set(GMT 0)" (London I think).
so that date/time is all neutral.

Whenever data is retrieved it should apply the timezone the user has
set, for example "date_default_timezone_set('Australia/Melbourne')".
This should allow them to change their timezone and date/time should
be accurate.

Now, if its currently DST, when saving I should use
"date_default_timezone_set(GMT -1)". this way, next time I retrieve
the data it should be accurate whether I'm in DST or not.

I thought I'd put this all in the app controller, and in the
beforeFilter us "if ($this->action == 'add')".

Is there a better way? I'm a bit worried about advanced actions that
do a bit of save and find. so my check above wont work. so how else
could I get to the created and modified to apply the timezone?

--

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=.


Reply via email to