I have an attribute called "date" in my DB with the datatype "TIMESTAMP"
When executing the following code in my model the following data is saved in the DB:
0000-00-00 00:00:00(instead of the timestamp..)
Model Code:
protected function beforeValidate()
{
$this->date = time();
return parent::beforeValidate();
}

Help














