Thank you very much David,

I didn't think to do this in beforeSave which is a nice idea.

I modified the model cakephp file to save the data in UTC because the php
application has a timezone depending on the logged in user.

Thanks again!

On Sun, Jul 31, 2011 at 9:15 PM, David Kullmann [via CakePHP] <
[email protected]> wrote:

> Ecommy:
>
> You could still have the actual server timezone be different, and just
> have the PHP timezone be UTC. You probably don't want to have the
> timezone determined on the PHP-level for your application anyway, you
> want your application to determine the timezone instead.
>
>
> -DK
>
> On Jul 30, 4:50 am, ecommy <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4652625&i=0>>
> wrote:
> > not necesary true in my case, I need to change the timezone depending on
> > country but still keep the time in the database inGMT
> >
> > what is your aproach in this case? There are several solutions not sure
> > what's best and cleanest.
> >
> > --
> > View this message in context:
> http://cakephp.1045679.n5.nabble.com/CakePHP-Modified-and-Created-GMT...
> > Sent from the CakePHP mailing list archive at Nabble.com.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4652625&i=1> For
> more options, visit this group at http://groups.google.com/group/cake-php
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://cakephp.1045679.n5.nabble.com/CakePHP-Modified-and-Created-GMT-Time-tp1283940p4652625.html
>  To unsubscribe from CakePHP Modified and Created GMT Time, click 
> here<http://cakephp.1045679.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1283940&code=YnN0ZGV2ZWxvcG1lbnRAZ21haWwuY29tfDEyODM5NDB8MTExMDY1NzIzNQ==>.
>
>


--
View this message in context: 
http://cakephp.1045679.n5.nabble.com/CakePHP-Modified-and-Created-GMT-Time-tp1283940p4664593.html
Sent from the CakePHP mailing list archive at Nabble.com.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to