To set the correct timezone in the script add this line after ORDER BY...
date_default_timezone_set('Europe/London');