I want to insert current date and time when i add new record. But when i theres a problem. The date was correct but the time error. This is the code:
<?php echo date('d-m-Y H:i:s A',strtotime($value['Province']['created']));?>
When i add new data at 10/03/2017 18:40 PM, Then output will be 10/03/2017 11:41 Am. The time was wrong. created is column name in table Province in database