Re: Problem to insert date in Database

2007-05-25 Thread Gilles Dubois
I don't think so. I think it is not a normal behaviour that you can't made a find and a save just after without lose some data. Is it normal that the date format of the find() is not the same that the date format of the save() ? If Yes, where is defined the date format of the find ? If i have a

Re: Problem to insert date in Database

2007-05-25 Thread yannouz
sorry just post 2 times with the logon of a friend :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Re: Problem to insert date in Database

2007-05-25 Thread Chris Hartjes
On 5/25/07, yannouz <[EMAIL PROTECTED]> wrote: > If i execute a save directly after that : $project->save($data) > The begin date is replace in the database by 1970-01-01 00:00:00 > because 21/02/07 is not valid, the system need a d.m.Y format date. > > The original code was not made by me, so may

Re: Problem to insert date in Database

2007-05-25 Thread yannouz
> If i execute a save directly after that : $project->save($data) > The begin date is replace in the database by 1970-01-01 00:00:00 > because 21/02/07 is not valid, the system need a d.m.Y format date. Ho sorry i made a mistake, the last sentence is "the system need a m.d.Y format date" --~--

Problem to insert date in Database

2007-05-25 Thread yannouz
Hello All, I'm pretty new in the Cake world so excuse me if my question is a noob one, but i haven't find any similar question. I will simplify my example to be understandable : My Oracle Database have a Projects table which contains some data and a begin_date field which is a date id|