created modified function (default) is not working in Cakephp 1.2 version

Posted by Jpsworld on Stack Overflow See other posts from Stack Overflow or by Jpsworld
Published on 2012-01-04T12:08:35Z Indexed on 2012/07/03 15:16 UTC
Read the original article Hit count: 161

Filed under:
|
|

I created an application and all the db tables have 'created,modified' fields that filled automatically by Cakephp's Default Functionality. And i put the Field Type is

created datetime NULL,
modified datetime NULL,

like. But it doesn't work. The data where shows 0000-00-00 00:00:00 Format.

The cakephp version is 1.2 , so i put the datetime NULL option ,also i removed the temp,cache files in Model.

I need to save the correct date & time format for those 2 fields.

If there is any problem with XAMPP version (I use the latest version of XAMPP,1.7.7 PHP: 5.3.8 & mysql v 5.5.16 )

I hope that all are identifies my Issue. Please help me with correct solution.

Thanks & Regards, Jpsworld.

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about modified