>
>
> --
> 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
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,
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
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
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
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