Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-27-2007, 12:26 AM
Junior Member
 
Join Date: Nov 2007
Posts: 23
Default Zend_Date::now() storing wrong date into 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:27 PM.