created modified function (default) is not working in Cakephp 1.2 version
- by Jpsworld
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.