Andy, 

Cake's 'created' and 'modified' magic uses the PHP date() function. The
Best Practice for dates is to store all dates interally in UTC/GMT, and
apply an offset on viewing. If you would prefer not to do this, check
out:

http://uk2.php.net/manual/en/function.date-default-timezone-set.php
or
http://uk2.php.net/manual/en/function.setlocale.php

Regards,

Chris


On Tue, 18 Jul 2006 14:01:32 -0700
"seefai" <[EMAIL PROTECTED]> wrote:

> 
> Hi brother,
> 
> I am Andy from Malaysia and just a begineer to cakePHP.
> 
> I having a problem that when i try to save a Created/Modified date (By
> Cake's Default) in to the database, i will get 8 hours delay of the
> time, can i know how to solve it
> 
> Thanks
> 
> Best wishes,
> 
> Andy
> 
> 
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google
> Groups "Cake PHP" 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
> -~----------~----~----~----~------~----~------~--~---
> 


-- 
 Chris Lamb, Cambridgeshire, UK                  [EMAIL PROTECTED]
  WWW: www.chris-lamb.co.uk                             GPG: 0x634F9A20

Attachment: signature.asc
Description: PGP signature

Reply via email to