Re: CakePHP Modified and Created GMT Time

2011-08-04 Thread ecommy
> > > -- > 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 Create

Re: CakePHP Modified and Created GMT Time

2011-07-31 Thread David Kullmann
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,

Re: CakePHP Modified and Created GMT Time

2011-07-31 Thread David Kullmann
You could write a behavior for GMT-ifying the timestamps in beforeSave. On Jul 30, 4:50 am, ecommy 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 sol

Re: CakePHP Modified and Created GMT Time

2011-07-30 Thread ecommy
e.com/CakePHP-Modified-and-Created-GMT-Time-tp1283940p4649332.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

Re: CakePHP Modified and Created GMT Time

2009-12-08 Thread Marco
It is not a problem of CakePHP, if you want php considers as default the GMT timezone add date_default_timezone_set('UTC'); in bootstrap.php file. On Dec 7, 7:20 pm, Josh K wrote: > When CakePHP automatically updates the modified and created columns > (http://book.cakephp.org/view/69/created-an

CakePHP Modified and Created GMT Time

2009-12-07 Thread Josh K
When CakePHP automatically updates the modified and created columns (http://book.cakephp.org/view/69/created-and-modified), it uses the server's timezone, and not the GMT timezone (i.e - gmdate(), etc.). Why is this? If I were to move to a server in a different timezone, I would have to adjust any