I have the following PHP date function and it returns "UTC" as the timezone. I need it to return the time zone for America/New York either EST or EDT as appropriate.
date( 'D, d M Y H:i:s T' );
It returns: Thu, 08 Oct 2015 16:48:00 UTC
I need it to return Thu, 08 Oct 2015 16:48:00 EDT
Amended.
Here is my complete PHP code line:
date_default_timezone_set( 'America/New_York' );
echo '<meta http-equiv="last-modified" content="' . date( 'D, d M Y H:i:s T', strtotime( get_the_date() .' ' . get_the_time() ) ) . '" />' . "\n";
It is part of a WordPress plugin whose purpose is to insert a meta tag in the head container to reflect the date and time the WP Post was last updated.