I met a problem. It took me several hours but failed.
I am using zend framework 2 and trying to insert current time stamp into oracle database table.
In my oracle database,
to_timestamp('2000-1-1 0:0:0', 'yyyy-mm-dd hh24:mi:ss') can be inserted as data in sql sentence.
I have tried several ways in zf2 controller.
$data['ts_last_login'] = date('Y-m-d H:i:s');
$data['ts_last_login'] =Zend_Db_Expr('NOW()'); Actually, I can't find Zend_Db_Expr in framework 2.
But both fails. (invalid month) Who can help me ? THanks in advance.