View Single Post
  #6 (permalink)  
Old 11-27-2007, 12:22 AM
conradwt conradwt is offline
Junior Member
 
Join Date: Nov 2007
Posts: 24
Default Zend_Date::now doesn't store the correct date in the DB

Hi, I have a field database field called created_at which is assigned when an new instance is created and I use the following:

PHP Code:
$data = array( 'created_at' =>  Zend_Date::now() );

$object = new MyClass();

$object->insert$data ); 
However, when I list the objects that have been inserted in the database via the browser, I'm getting the following for the 'created_at' field:

0000-00-00 00:00:00

Also, when I view the contents of the DB, I'm seeing the same results. Thus, if anyone has the answer for this, please post the solution.

Thanks in advance,

-Conrad
Reply With Quote