I have datetime strings like these:
2015-02-13 22:00 GMT+1 -DST
2015-03-20 21:00 GMT-5 +DST
What I started to try:
<?php
$date = DateTime::createFromFormat('Y-m-d H:i ', '2015-03-20 21:00 GMT-5 +DST');
echo $date->format('d-m-Y H:i');
?>
However I get stuck on the timezone and DST. I see on http://php.net/manual/en/datetime.createfromformat.php that I can use e, O, P and T for timezone, but I don't understand which character is representing what. Could I even use it directly like this? Do I have to convert that -5 to e.g. -0500? Then what character? And what to do with DST?