Set timezone in .htaccess for PHP
Article on how to set the timezone in the htaccess file for PHP
Real Life Tech Problems Solved.
Article on how to set the timezone in the htaccess file for PHP
Info on how to use strtotime with UK date formats
Getting this in a PHP site I am writing, to fix add this to a common include on your PHP page: date_default_timezone_set('UTC');
Was adding a date from a service to MySql using PHP and needed something to convert the PHP string into something MySql could use for a DateTime field. This worked a treat: $reviewDateSql = date('Y-m-d H:i:s',strtotime("$reviewDate"));