with date php function its works with all databases
You can do it in model
<?php
namespace Store\Toys;
use Phalcon\Mvc\Model;
class RobotParts extends Model
{
public $myDate = date("Y-m-d H:i:s");
}
Edit :
You can do it also in model before save
public function beforeCreate()
{
$this->created_at = date("Y-m-d H:i:s");
}
public function beforeUpdate()
{
$this->updated_at = date("Y-m-d H:i:s");
}