When I insert an entry into MYSQL the 'datetime' in my MYSQL entry is different from that registered with PHP. How can I make them register the same date and time? I am in the UK and I use the Godaddy server.
I have used the following to set the default time:
date_default_timezone_set("Europe/London");
// TO GET THE PRESENT DATE TIME
$dateTimeNow = date("Y-m-d H:i:s");
For example I made an entry to to my database and I had the following differences in time:
DateTime now (PHP): 2016-09-23 16:40:54
DateTime of post (from MYSQL): 2016-09-23 08:06:52
// FOR DATETIME INSERTION INTO MYSQL I USE
now()