I have the following PHP date function and it returns βUTCβ as a time zone. I need the time zone for America / New York to change as EST or EDT .
date( 'D, d M Y H:i:s T' );
He returns: Thu, 08 Oct 2015 16:48:00 UTC
I need him to be back Thu, 08 Oct 2015 16:48:00 EDT
Modified.
Here is my complete line of PHP code:
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";
This is part of the WordPress plugin, the purpose of which is to insert a meta tag in the header container to reflect the date and time the WP message was last updated.
source
share