Using php I am inserting or updating a mysql database with a creation date or a modified date using variables
$datestring = "%Y:%m:%d %h:%i:%s"; $time = time(); $createdate= mdate($datestring, $time);
This $createdate will use the variable that I use to insert or update the table. But this update is of the wrong value. This is not server time or local time. Basically this is a 30 minute delay with a time server.
source share