On Wed, Dec 8, 2010 at 8:50 PM, FahDoos <[email protected]> wrote: > Thanks again for your help! > > For some reason using 'NOW()' resulted in a modified time of > 0000-00-00 00:00:00, which I assume is because the query was trying to > insert the string NOW() since it's wrapped in quotes. I ended up using > the following: > > $this->Conversation->saveField('modified', date('Y-m-d H:i:s'));
Excellent. I wasn't sure about NOW(), actually. I know I've updated a DATETIME manually before but didn't remember correctly, I guess. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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?hl=en
