I need to find a way to convert a user specified date and time into a GMT timestamp.
Following the answer by Mahdi here, I'm using the following code to prototype the conversion
$date = new DateTime("09 Jul 2016 18:00:00");
echo gmdate('Y-m-d H:i:s', $date->getTimestamp());
Which returns
2016-07-09 16:00:00
What the response should be is
2016-07-09 17:00:00
Because via using other sources I've worked out that the GMT time is 1 hour behind of the local time where I live (UK).
Any ideas why this peculiar behaviour is happening?