forked from mirrors/easyappointments
Set the create_datetime value when creating a new consent
This commit is contained in:
parent
62d3a00fd9
commit
afe21e3960
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@ class Consents_model extends EA_Model {
|
|||
*/
|
||||
protected function insert(array $consent): int
|
||||
{
|
||||
$consent['create_datetime'] = date('Y-m-d H:i:s');
|
||||
$consent['update_datetime'] = date('Y-m-d H:i:s');
|
||||
|
||||
if ( ! $this->db->insert('consents', $consent))
|
||||
|
|
Loading…
Reference in a new issue