I have a $timeString formatted as 8:00 PM ET. I am trying to create a date object using the following:
$time = date_create_from_format('g:i A e', $timeString);
(source: http://www.php.net/manual/en/datetime.createfromformat.php)
When I echo the result using date("H:i:s", $time) I am getting 7:00 PM ET. No matter which time I provide, I always receive 7pm (which is 0:00 GMT).
Am I using the format parameters incorrectly?
ETis a valid timezone identifier. TryEST.