I want to insert current time in database using mySQL function NOW() in Codeigniter\'s active record. The following query won\'t work:
$data = array(
you can load the date helper and use the codeigniter interal now() if you want to reference the users GMT time offset
it woulk look somewhat like this
$data = array(
'created_on' => date('Y-m-d H:i:s',now())
);
If you don't use the GTM master settings and let your users set their own offsets there is no advantage over using php's time() function.